0

I put a cron script in /etc/cron.d:

[root@node ~]# cat /etc/cron.d/reconfig
0 */6 * * * root /root/bin/reconfig.pl

But I get no list of cron tasks for root:

[root@node ~]# crontab -l
no crontab for root

How can I check it's running ok?

It's a Scientific Linux 6.4 node.

Zhen
  • 2,179

1 Answers1

6
[root@node ~]# crontab -l
no crontab for root

It displays this message because crontab -l list entries from user crontab and you edited just global crontab. If you want to edit users crontab just use this command:

crontab -e

To verify that your task has been executed just grep syslog:

grep CRON /var/log/syslog
radarek
  • 196