How can I check cron task it's running?
38,600
[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
Related videos on Youtube
Author by
Zhen
I'm a Game Programmer at soul but currently I work as System Administrator. To see me rant: http://malcodigo.blogspot.com To see me walk: http://zhenpaseando.blospot.com To just see me: Napoli, Italia. My best known work: Doodle Hex for Nintendo DS, Cell & Love for Android and Altamira II Supercomputer for the RES.
Updated on September 18, 2022Comments
-
Zhen almost 2 years
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.
-
user9517 almost 11 yearsIf 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.
-