By default the workload automation agent is executing all the jobs from the agent install directory. Is there a way to change the PWD (present working directory) for a Job?
To accomplish the task some of the scripts needs to be executed from designated working directories ( is a directory where they are running from).
This can be achieved in a couple of ways -
At the Agent level (Impacts all the jobs running on the agent)
The agentparm.txt has the following parameter
Specifies the default initial working directory for all scripts. Options are as follows:
Sets the path to where the script resides.
Sets the path to the home directory of the owner of the script.
Specifies that the script should run even if a home directory for the user is not defined.
Specifies the path to the directory in which the script should run.
At the Job level (Specific to the job)
The envvars attribute specifies environment variables to define the local environment where the script, command, or batch file runs. You can modify existing environment variables or create your own.
Autosys Workload Automation
ESP Workload Automation
ESP dSeries Workload Automation