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.
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:
To verify that your task has been executed just grep syslog: