Re: Crontab Problem
Russell L. Harris wrote:
* Grok Mogger <firstname.lastname@example.org> [061207 21:39]:
I tried doing something like this in the system wide crontab
(/etc/crontab) and I was disappointed to find that it didn't
work. It seems like the job just never ran at all. Can anyone
tell me what might have happened?
(This is of course supposed to be on one line)
00 22 * * * root nice /some/place/myscript.sh 1>
/other/place/logs/`date +%F`.output 2> /other/place/logs/`date
Did you have a blank line at the end of the crontab entry?
From the crontab man page:
Although cron requires that each entry in a crontab end in a
newline character, neither the crontab command nor the cron daemon
will detect this error. Instead, the crontab will appear to load
normally. However, the command will never run. The best choice is
to ensure that your crontab has a blank line at the end.
Thanks, I haven't figured out what was wrong for certain, but I
bet that was it. I didn't realize that was an issue with cron.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.15/580 - Release Date: 12/8/2006 12:53 PM