SUMMARY: Cron Failed Jobs Email

From: bac <bac20000_at_yahoo.com>
Date: Mon, 26 Mar 2001 15:39:15 -0800 (PST)

Thanks a bunch to:

 Oisin McGuinness
 Jim Belonis
 James Sainsbury
 John J. Francini
 Jeff Berliner
 Dr. Thomas.Blinn_at_ 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/
Received on Mon Mar 26 2001 - 23:40:32 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT