LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-27-2010, 05:55 AM   #1
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Rep: Reputation: 15
Crontab log


Hi,

Is there any way to get the name of the script run by crontab in the cronlogs?

ex: * * * * * /test.sh -- this is the cron job and i want to get the name of the script(test.sh) in the cron log after the job is run.
 
Old 04-27-2010, 09:34 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Tekken View Post
Hi,

Is there any way to get the name of the script run by crontab in the cronlogs?

ex: * * * * * /test.sh -- this is the cron job and i want to get the name of the script(test.sh) in the cron log after the job is run.
should log in /var/log/cron
 
  


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
crontab log does not exist sridhar_dct3 Programming 6 09-19-2011 03:56 AM
linux crontab vs unix crontab ytd Linux - General 2 08-09-2009 05:07 AM
Strange output log of crontab kuangchen Linux - Newbie 1 05-30-2008 04:13 AM
Crontab does not create log file montblanc Linux - Newbie 4 02-05-2008 08:59 AM
Help with crontab log error magyartoth Linux - General 5 12-21-2004 01:05 AM


All times are GMT -5. The time now is 08:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration