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:
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 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
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|