tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: bac <bac20000 () yahoo ! com>
To: tru64-unix-managers
Subject: SUMMARY: Cron Failed Jobs Email
Date: Mon, 26 Mar 2001 23:39:15 +0000	[thread overview]
Message-ID: <98565000112833.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks a bunch to:

 Oisin McGuinness   
 Jim Belonis   
 James Sainsbury   
 John J. Francini   
 Jeff Berliner   
 Dr. Thomas.Blinn@ Compaq.com    
 Steve VanDevender 

The question was:

Any failed cron jobs send an email to root. 
Is there a configuration we can modify to change it so
that the email is not sent??

The answer is as follows:

cron automatically mails any stdout and stderr data to
the owner of the cronjob.  If your scripts are careful
to redirect this information, no mail will be sent.  

If your cronjob looks like:

0 20 * * * /db8/backup/oracle/archive.sh

adding the following would eliminate any output:

0 20 * * * /db8/backup/oracle/archive_rvu.sh >
/dev/null 2>&1

That redirects any stdout and stderr to the null
device.


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

                 reply	other threads:[~2001-03-26 23:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox