The UNIX and Linux Forums  

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
Traverse a flatfile and check for errors aravindc Shell Programming and Scripting 1 04-16-2008 11:56 PM
Crontab Check iAm4Free Shell Programming and Scripting 4 05-02-2007 11:08 AM
Check this out. Find out the errors as much as possible. thanks CULM What's on Your Mind? 6 11-10-2005 11:43 PM
Adapter Errors and Link Errors mcastill66 AIX 2 08-02-2005 03:51 PM
Adapter Errors and Link Errors mcastill66 UNIX for Advanced & Expert Users 0 08-02-2005 03:11 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2005
Registered User
 

Join Date: Jun 2005
Location: New York City
Posts: 95
Check my crontab for possible errors.

I'm posting the line I just added to my crontab because it's my first and I want to be sure it's doing what I'm intending it to do.
Code:
59 23 0 * 1-5 /export/<many_directories_later...>/scripts/get_clientkpi.sh
Supposed to do: Run script at 11:59pm every night, except weekends.

Question: If I wish to direct error output, will the following work:
Code:
59 23 0 * 1-5 /export/<many_directories_later...>/scripts/get_clientkpi.sh > 2>/export/<many_directories_later...>/scripts/error.log
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-20-2005
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
Should be

Code:
59 23 * * 1-5 /export/<many_directories_later...>/scripts/get_clientkpi.sh > 2>/export/<many_directories_later...>/scripts/error.log
Reply With Quote
  #3 (permalink)  
Old 06-20-2005
Registered User
 

Join Date: Jun 2005
Location: New York City
Posts: 95
hmm..

oh.. i see.
That would've been bad.
Reply With Quote
  #4 (permalink)  
Old 06-20-2005
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
Oups,

you should remove a > before 2>/export/<many_directories_later...>/scripts/error.log ... so it will be

Code:
59 23 * * 1-5 /export/<many_directories_later...>/scripts/get_clientkpi.sh 2>/export/<many_directories_later...>/scripts/error.log
or do

Code:
59 23 * * 1-5 /export/<many_directories_later...>/scripts/get_clientkpi.sh >/dev/null 2>/export/<many_directories_later...>/scripts/error.log
Reply With Quote
  #5 (permalink)  
Old 06-20-2005
Registered User
 

Join Date: Jun 2005
Location: New York City
Posts: 95
ahh... great

great, thanks.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0