The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
background jobs exit status and limit the number of jobs to run GrepMe Shell Programming and Scripting 1 06-11-2007 07:56 PM
Crontab did not fire jobs hwh1 UNIX for Advanced & Expert Users 4 10-04-2006 01:41 AM
Overlapping(executing time) jobs in crontab new2ss Shell Programming and Scripting 3 02-17-2006 02:29 AM
jobs vbaskar UNIX for Advanced & Expert Users 1 02-28-2002 01:28 AM

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 07-11-2007
ericaworld ericaworld is offline
Registered User
  
 

Join Date: May 2007
Posts: 11
crontab jobs to append to the same log

Hi, all:
I have a shell script runs in the crontab, which writes the output to a log file, as following:
0 18 * * * /oracle/deleteBackup.sh >/oracle/deleteBackup.log

Everytime the script is run by crontab , the deleteBackup.log is overwritten,
is there anyway that I can append to the deleteBackup.log instead of overwrite it? so I can see the previous run's result too?
  #2 (permalink)  
Old 07-11-2007
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 228
Try this:
0 18 * * * /oracle/deleteBackup.sh >>/oracle/deleteBackup.log

Add the extra right arrow.
  #3 (permalink)  
Old 07-11-2007
ericaworld ericaworld is offline
Registered User
  
 

Join Date: May 2007
Posts: 11
U R Awesome

Young, thanx for help, it works perfectly
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 03:18 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