iTP Active Transaction Pages (iTP ATP) Programmer's Guide

Designing and Debugging ATP Applications
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
6-6
Running the Server-Side JavaScript Environment
from the Korn Shell
Running the Server-Side JavaScript Environment from the Korn Shell
In some situations, for example if the error is “document has no data,” it can be helpful
to view the output from a page in isolation from the browser and the web server.
In such cases, you can run ATP from the OSS shell prompt, as shown in Example 6-4
:
To execute multiple scripts (mypage, mypage1) a specified number of times (value),
use the following syntax:
The cat command directs subsequent lines through the end of file to the file ztemp,
and the line ./atp.pway<ztemp specifies ztemp as the input file.
Example 6-4. Running ATP from the OSS Shell Prompt
export VARIABLE1_NEEDED_BY_PAGE=value
export VARIABLE2_NEEDED_BY_PAGE=value
./atp.pway
Example 6-5. Executing Multiple Scripts from the OSS Shell
cat>ztemp<<EOF
mypage.atp
mypage1.atp
EOF
./atp.pway<ztemp