I have a cron job that is supposed to run a script every 15 minutes.

*/15 * * * * /path/to/script.sh

I checked in three hours later and found that the script never ran, even once.

Earlier I tried to get it to run every half hour by:

0, 30 * * * * /path/to/script.sh

with the same (lack of) results.

Yes, the script is executable by me and I'm using my own crontab. Any ideas?


Update:

Here is what I tried so far:

  1. Tested cron by writing a script to echo helloworld, wrote a crontab to run it every minute and waited around for 15 minutes while nothing happened.
  2. Looked for cron.allow and cron.deny. cron.allow does not exist, cron.deny does but I am not in it.
  3. Looked for the cron logs as was suggested. Don't have read priveleges, will write to request them.
link|improve this question

Did you check the logs/email? Also, specify linux distribution/cron version. – haimg Dec 23 '11 at 19:12
1  
Does crontab -l show the job correctly? – slhck Dec 23 '11 at 19:21
possible duplicate of cron runs but nothing happens – RedGrittyBrick Dec 23 '11 at 19:26
@RedGrittyBrick, No it isn't. I read that question first. He misnamed a file. I checked that already. – Yitzchak Dec 23 '11 at 19:39
2  
@Yitzchak: OK. Did you try all the suggestions in the accepted answer? Do you have "cron.* -/var/log/cron" in /etc/syslog.conf? – RedGrittyBrick Dec 23 '11 at 19:42
show 3 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.