[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] RE: openwebmail calendar notify
- Subject: [cobalt-users] RE: openwebmail calendar notify
- From: Charlie Summers <charlie@xxxxxxxxxx>
- Date: Sat Jan 4 06:35:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 9:07 AM -0500 1/4/03, Alfredo Musse T. is rumored to have typed:
> I try it and the Cron Daemon still send me that mail
Dan's suggestion was...incomplete; you need to _redirect_ the error
message and normal output to /dev/null, like:
0 * * * * command.pl >/dev/null 2>&1
If you _only_ want to supress error messages, use:
0 * * * * command.pl 2>/dev/null
This isn't as tough as it looks; file descriptor 1 is stdout, and file
descriptor 2 is stderr. So ">/dev/null 2>&1" means, "send (>) stdout (the
normal output of the command; we don't need to reference 1 here) to
/dev/null, and while you're at it, send (>) stderr (error messages, 2) to the
same place you send stdout (&1, now set to /dev/null)."
Charlie