Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!tut.cis.ohio-state.edu!att!cbnewsh!tel From: tel@cbnewsh.ATT.COM (thomas.e.lowe) Newsgroups: comp.unix.questions Subject: Re: How to stop mail from cron Keywords: Help Message-ID: <428@cbnewsh.ATT.COM> Date: 5 May 89 02:34:28 GMT References: <147@jma.UUCP> Reply-To: tel@cbnewsh.ATT.COM (thomas.e.lowe) Organization: AT&T Bell Laboratories Lines: 19 In article <147@jma.UUCP> max@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@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!!)