Previous Topic: Send a User-Defined Exit CodeNext Topic: Specifying the Command or Script Name Using an Environment Variable


Specifying the Command or Script Name Without the Full Path in a UNIX Job

When defining a job, the agent usually requires the full path to the command or script name you want to run. However, you can specify the command or script name without the full path if all of the following conditions are met:

Example: Run a Script that is Located in a Path Set in the PATH System Environment Variable

In this example, an agent named UNIXAGENT runs a script named procscript.sh. The job runs under the user ID jsmith, which has the authority to run the script. The path to procscript.sh is set in the PATH system environment variable for jsmith on the agent computer and the agent is configured to search for paths to command and script files.

AGENT UNIXAGENT
SCRIPTNAME procscript.sh
USER jsmith