From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98565000112833.tru64-unix-managers.marc@archive.invalid> From: bac Date: Mon, 26 Mar 2001 23:39:15 +0000 To: tru64-unix-managers Subject: SUMMARY: Cron Failed Jobs Email X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98565000112833 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/