Previous Topic: UNIX Environment VariablesNext Topic: Send a User-Defined Exit Code


Define Alternative Input and Output Sources

All UNIX programs run by a shell are connected to the following input and output streams:

Stream

Default Source

Standard input stream

Keyboard

Standard output stream

Screen

Standard error output stream

Screen

To define alternative input and output sources, specify the following environment variables in your job definition:

In the preceding examples, name is the file to be used as the standard input or output stream and path is the location of the file.

The STDOUT file name displays when you list the workload object with the LISTAPPL or APPLJOB command. The STDOUT file name may be different from what was specified in STDOUT=. For example:

ENVAR STDOUT=$AGENTPATH/stdout.txt

In this example, the environment variable AGENTPATH equals '/root/home/2'; therefore, the file name resolves to StdOut=/root/home/2/stdout.txt in the output of the workload object.

This is applicable only for Windows NT and all UNIX agents.

The STDERR file name displays when you list the workload object with the LISTAPPL or APPLJOB command. The STDERR file name may be different from what was specified in STDERR=. For example:

ENVAR STDERR=$AGENTPATH/stderr.txt

In this example, the environment variable AGENTPATH equals '/root/home/2'; therefore, the file name resolves to StdErr=/root/home/2/stderr.txt in the output of the workload object.

This is applicable only for Windows NT and all UNIX agents.