Results 1 to 3 of 3
Hey,
I have 4 jobs that i want to run as specific times.
This is my crontab -e as follows.
Code:
1 * * * * /var/www/html/scripts/dailyrepgen.sh
*/5 * * ...
- 10-10-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 2
Crontab job only half works??
Hey,
I have 4 jobs that i want to run as specific times.
This is my crontab -e as follows.
Basically what happens is that all the jobs execute and work fine other than the emailreport.shCode:1 * * * * /var/www/html/scripts/dailyrepgen.sh */5 * * * * /var/www/html/scripts/currentrepgen.sh 0 8 * * * /var/www/html/scripts/emailreport.sh 2 * * * * /var/www/html/scripts/archive.sh
There all in the same directory and they all have the same permissions. I'm not sure why this one wont run. If i manually run it - it works fine so it's no a script problem.
I have the same setup on another identical machine and it runs perfectly.
Any ideas - would be awesome.
Cheers
- 10-10-2007 #2Just Joined!
- Join Date
- Oct 2007
- Location
- Pennsylvania
- Posts
- 31
Sounds like a cron environment problem to me. Compare the /etc/crontab config on the box that work to the /etc/crontab config on the box that doesn't work. Keep an eye on the top of the config for any environment settings.
Bitstreamer
- 10-10-2007 #3Just Joined!
- Join Date
- Oct 2007
- Posts
- 2
Ok i figured it out!
I was calling a sendEmail perl script . .
the sendEmail was in /usr/local/bin
the crontab would not run the sendEmail command from there via the crontab
moving it to /bin/ fixed the problem.
Strange that you can run it manually and it works fine.
Obviously a path issue.


Reply With Quote