script in crontab do not execute or take proper environment of user
On a Linux machine running RH9 which I have only user permissions. I wish to copy a directory files and compile it before start of every day.
I scheduled a crontab job as such by crontab -e
MAILTO=""
SHELL=/bin/bash
0 10 * * * ~/daily.jobs
If I schedule simple commands as date >>~/x.txt. They get executed, but my script do not execute properly. It have executable flags also set for this file. When I try to print proper environment variables, it do not print $HOST in the script.
My daily.jobs script is as such;
#!/bin/bash
cd /hme/mayank/project/
cvs update -dP
make update
make
What can be the possible blotch for not execution of this file ??
Thanks and Regards
Mayank Agarwal
|