Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by Iain, Falcon Momot, Ward, Jenny D, Ladadadada Sep 12 '13 at 11:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
If you work your way through serverfault.com/questions/449651/… it will give you valuable knowledge on cron and will undoubtedly help you to solve your problem. –  Iain Sep 11 '13 at 11:38

1 Answer 1

up vote 1 down vote accepted
[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
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.