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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-20-2005
yongho yongho is offline
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
  #2 (permalink)  
Old 06-20-2005
qfwfq qfwfq is offline
Registered User
  
 

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

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

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

oh.. i see.
That would've been bad.
  #4 (permalink)  
Old 06-20-2005
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
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
  #5 (permalink)  
Old 06-20-2005
yongho yongho is offline
Registered User
  
 

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

great, thanks.
Closed Thread

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 04:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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