How to stop mail from cron
thomas.e.lowe
tel at cbnewsh.ATT.COM
Fri May 5 12:34:28 AEST 1989
In article <147 at jma.UUCP> max at jma.UUCP (Max Heffler @ Landmark Graphics) writes:
>I have a cron entry with output redirected to /dev/null.
>I still get the output, which was echoed from a script,
>sent to me as mail. How do I shut it up?
Often times information is sent to stderr in addition to stdout.
Your cron entry should look something like:
0 3 * * * command > /dev/null 2>&1
The 2>&1 while redirect the stderr to /dev/null also.
If you already have this in your script, perhaps the command
itself mails the output from inside.
--
Tom Lowe tel at hound.ATT.COM or att!hound!tel 201-949-0428
AT&T Bell Laboratories, Room 2E-637A
Crawfords Corner Road, Holmdel, NJ 07733
(R) UNIX is a registered trademark of AT&T (keep them lawyers happy!!)
More information about the Comp.unix.questions
mailing list