Previous Topic: Specifying the Command or Script Name Without the Full Path in a UNIX JobNext Topic: Set a UNIX Job's Process Priority


Specifying the Command or Script Name Using an Environment Variable

You can specify the command or script name using an environment variable, for example, $MY_PATH/myscript.sh, if all of the following conditions are met:

Example: Run a Script that is Located in a Path Set in a User Environment Variable

In this example, an agent named UNIXAGENT runs a script named myscript.sh. The job runs under the user ID jsmith, which has the authority to run the script. The path to myscript.sh is set in the user environment variable $MY_PATH, which is defined in the profile file for jsmith, and the agent is configured to search for paths to command and script files.

AGENT UNIXAGENT
SCRIPTNAME $MY_PATH/myscript.sh
USER jsmith