The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script not working from crontab, executes individual saha Shell Programming and Scripting 4 04-12-2009 08:51 PM
crontab entry rajip23 SUN Solaris 1 03-26-2009 07:38 AM
crontab entry Sowser UNIX for Advanced & Expert Users 4 01-08-2007 05:34 PM
crontab entry matrixmadhan UNIX for Dummies Questions & Answers 3 06-07-2005 08:57 AM
crontab and shell script that executes a sql. radhika Shell Programming and Scripting 6 06-06-2005 11:33 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-30-2009
kweikel kweikel is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
Unhappy crontab entry executes sporadically

I have a crontab entry that goes out to 12 servers each day and gathers statistics about their dayend processing. The script goes to both HP and AIX servers (which shouldn't make a difference, I don't think). We output the job to a log file. Some weeks, the job will run successfully every day and then the next week, it will only run or gather stats one day. All that is posted to the log file when no stats are gathered is the word "exit". There are no errors in the /var/spool/cron/log file - you can see the job kick off and then a couple of minutes later in the log you see PID successful.

I was just wondering if there was a way to capture more information when the job doesn't run in place of the "exit" that gets posted. Or if there is somewhere else on the system I can look for errors.

Thanks
  #2 (permalink)  
Old 06-30-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,147
Try the mailbox for the user who owns the crontab. This is where any untrapped messages go.
Failing that the script will need improving.
  #3 (permalink)  
Old 06-30-2009
kweikel kweikel is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
Okay, thank you. The job is run as root and there were no emails about this job so I guess I will start working on the script.
Thanks again for your reply.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0