johnnyasterisk
IS-IT--Management
Hey guys...
I have a shell script in a directory /home/mydir called getfiles.sh i want to run it every night however my problem is the file needs to run in its own directory because it needs to access stuff in there. Is there a way I can tell crontab to move into this directory before running the script?
I know I could rewrite my script to use the full path, just wondering if above is possible.
I have a shell script in a directory /home/mydir called getfiles.sh i want to run it every night however my problem is the file needs to run in its own directory because it needs to access stuff in there. Is there a way I can tell crontab to move into this directory before running the script?
I know I could rewrite my script to use the full path, just wondering if above is possible.