Portal Home > Knowledgebase > Articles Database > cronjob log


cronjob log




Posted by gozargah, 05-21-2011, 02:29 AM
How can check linux cronjob log? For example, i have a cronjob like this: */5 * * * * sh /root/loadctl.sh How can see this command log runed by cronjob?

Posted by david510, 05-21-2011, 02:42 AM
It depends on the Operating system. If it is debian/ubuntu, it will be by default in the location /var/log/syslog In case of redhat/fedora/centos, it will be in /var/log/messages or /var/log/cron

Posted by gozargah, 05-21-2011, 05:08 AM
Thank you very much. Its look like: May 21 13:35:01 m5118 crond[25469]: (root) CMD (sh /root/loadctl.sh) in /var/log/cron i need to see more detail.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Server Always Loaded (Views: 634)
MochaHost any good? (Views: 644)