I have a Redhat Enterprise Linux box. Here's how my /etc/crontab file looks.
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
# Weekly back-up script that runs on Monday morning at 1:15AM
15 1 * * 1 /u/system/b 2>/u/system/b.out
# Daily back-up script that runs on Tue,Wed,Thu,Fri,Sat mornings
15 1 * * 2-6 /u/system/d/d 2>/u/system/d/d.out
Both the weekly and the daily back-up scripts aren't getting triggered by the cron deamon. I restarted the cron daemon but it did not help.
When I type "crontab -l" while logged in as root, I get a message which says "no crontab for root". Do I need to add "root" to the two lines that I have added to the crontab? What could I be doing wrong. I edited the /etc/crontab file using the command "vi /etc/crontab". I did not use "crontab -e".