Re: how to prevent crontab from sending email

"Steven W. Orr" <[email protected]> Mon, 10 Mar 2003 23:29:55 -0500 (EST)
Newsgroups gmane.linux.redhat.release.guinness
Organization SysLang Inc.
Message-ID <[email protected]>
On Tue, 11 Mar 2003, Daniel Tan wrote:

=>hi,
=>    a pretty dumb qn.how to prevent crontab from sending out email to me
=>whenever a job is done.eg. mailscanner updating every 5 mins...i don't want
=>to dump the details into a file but just wanna dump it away..
=>
=>i tried putting > /dev/null at end of cron statement

Do this instead:

cmd > /dev/null 2>&1

If *any* output goes to either stdout or stderr then the owner of the job 
gets email.

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
steveo at syslang.net