problems with crontab for root
Hi!
I am trying to get my first crontab to work, and I can't see what I'm doing wrong.
I used (as root) crontab -e to create the different jobs, and when saving it seems to go fine. The /var/log/cron is updated like this:
nov 10 14:12:27 mumin crontab[2802]: (root) BEGIN EDIT (root)
nov 10 14:12:33 mumin crontab[2802]: (root) END EDIT (root)
And if I do crontab -l I get this:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.29909 installed on Mon Nov 10 12:03:32 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
* * * * * /root/du_script.perl >> /root/my_cron.log
So, the du_script.perl should be run every minute, but nothing happens.
So I tried to create a crontab for another user, and that works perfectly.
crontab -l (as David)
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3222 installed on Mon Nov 10 14:24:45 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
* * * * * /home/David/david_crontest.perl >> /home/David/cron.log
and in the cron log:
nov 10 14:24:09 mumin crontab[3222]: (David) BEGIN EDIT (David)
nov 10 14:24:45 mumin crontab[3222]: (David) REPLACE (David)
nov 10 14:24:45 mumin crontab[3222]: (David) END EDIT (David)
nov 10 14:24:53 mumin crontab[3251]: (David) LIST (David)
Nov 10 14:25:00 mumin crond[26585]: (David) RELOAD (cron/David)
Nov 10 14:25:00 mumin CROND[3253]: (David) CMD (/home/David/david_crontest.perl >> /home/David/cron.log)
Why is nothing happening for the root's cron jobs? I would appreciate any tips helping me sort this out!!
/David
|