Tell me more ×  I am using a scheduler to run a unix script
which starts up my application. The script is in the PATH of the
user used by the scheduler. Hence, can be run from an y  My
application log files are created relative to where the script
is run from. Unfortunatley, the scheduler does not run the
script from the folder I had hoped hence log files are not going
to correct folder.  Is there any way in I get the script to run
and behaves as it was run from a specified folder, e.g. ./
Working_Folder | Run_Folder  Note: I cannot change the script
share|improve this question add comment  2 Answers  If you can't
change the script, you'll have to make the scheduler run a
different command, not the script directly. For example, make
the scheduler run a simple wrapper script.  cd
/desired/directory/for/log/files /path/to/script "$@"
share|improve this answer You may also wish to check that the
target directory exists and is writable. –  Johnsyweb Jun 3 '11
at 11:32 add comment  if your scheduler run your task