LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2010, 06:25 AM   #1
jinu_t
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
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
 
Old 11-12-2010, 02:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What the %$#@ is pam_unix (cron:session) doing every ten minutes? (/var/log/auth.log) CoffeeKing!!! Linux - Security 3 02-05-2009 08:07 AM
cron log graziano1968 Linux - General 4 01-23-2008 07:32 AM
Cron log hkillen Linux - Newbie 3 09-20-2006 10:44 AM
Can't get Cron to log anything t3___ Linux - Newbie 3 05-19-2004 11:14 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration