Some shellscripts shell scripts must run in a specific working directory. To achive achieve this, you can add a cd command to the working directory before executing the shell script.
...
It is also possible to configure this as an extra file with just the cd command and add this file to the script with an include. This is helpfull helpful when you attempt to move a job from test to production without changing the configuration but with another working directory on the production site.
...
No Format |
---|
<job tasks="5" stop_on_error="no" order="yes" warn_if_longer_than="30:00" name="job1"> <script language="shell"> <include live_file="set_working_direcory.cmd"/> <![CDATA[ c:\script\myscript.cmd ]]> </script> </job> |
see also:
- FAQ by Topic: Shell Jobs- Scripting