I have a script, for example: /tools/IT/batch/script1.unix
When I use crontab to run it:
* * * * * /tools/IT/batch/script1.unix
I would like it to assume the pwd (do a cd?) of the location of the script... effectively doing cd /tools/IT/batch/
However, the script COULD move so we would change crontab but would not want to change the script.
Can this be done? How!
Thanks
Applications Support
UK
When I use crontab to run it:
* * * * * /tools/IT/batch/script1.unix
I would like it to assume the pwd (do a cd?) of the location of the script... effectively doing cd /tools/IT/batch/
However, the script COULD move so we would change crontab but would not want to change the script.
Can this be done? How!
Thanks
Applications Support
UK