LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Cron Log (https://www.linuxquestions.org/questions/linux-newbie-8/linux-cron-log-843640/)

jinu_t 11-11-2010 05:25 AM

Linux Cron Log
 
Hi All,

We are trying to build a GUI to show the cron job status for any host. In Linux the cron log is created in /var/log/cron. But I am unable to find any end time details for a script in Linux log. I could see the start time and end time in Solaris cron log which exists in /var/cron/log.

Is there any way to find the end time in Linux?

Really appreciate if anyone can help in this.

Thanks
Jinu

druuna 11-12-2010 01:41 AM

Hi,

It might depend on which cron is used, but I see the following in my cron log:
Quote:

Nov 12 08:35:00 exile fcron[2992]: Job /usr/lib/sa/sa1 & started for user admin (pid 2993)
Nov 12 08:35:02 exile fcron[2992]: Job /usr/lib/sa/sa1 & completed
As you might have noticed, I'm using fcron, but I do believe all cron daemons log this information.

If cron sends its information to syslogd, you might want to check /etc/syslog.conf to see what is logged and where it is logged (maybe these notice messages are send to another log file).

Hope this helps.


All times are GMT -5. The time now is 02:04 AM.