Jan. 9th, 2004

chicken: (Default)
Hello to any *nix geeks on my friends list.

Does anyone know how to figure out why a cron job isn't running? Is there a log somewhere that acts as STDERR for cron?

Is there something I forgot? That is, all I did was 'crontab -e' and then save it, which I thought was all, but did I need to use '/etc/init.d/cron stop | start' in order for the daemon to read in the new job? That seems unlikely, especially since I don't have 'sudo' or 'root' on the machine in question anyway. If there is no Log for cron's errors, then is there a checking routine I can run to test my syntax? Similar to the way you can run 'apachectl configtest'? I made sure that to set 'u+x' on the '~myHomeDir/bin/executable.bash' file which my cron calls, and made sure the crontab line lists *my* userid as the owner of the process. I cannot think what else to do. Here is the gist of my crontab entry:

30 0 * * * cmah /home/cmah/bin/run-webalizer.bash

Of course I checked and ran the bash script by hand to make sure it works. And I hope that the '30 0 * * *' means that I want to run the cron job every day at 00:30:00 (30 minutes after midnight).

Profile

chicken: (Default)
chicken

April 2009

S M T W T F S
   1234
56 78 9 1011
12131415161718
192021 22232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags