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:
Note: To configure the agent to resolve environment variables, ask your agent administrator to refer to the information about the oscomponent.lookupcommand parameter in the CA Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide.
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
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|