Re:Cronic - A cure for Cron's chronic email problem
by SourPatch on Friday May 25, 2012 @12:19AM
(#4021899)
There are many different cron implementations. Do none of them check exit status?
[ Parent
| on HN ]
Re:Cronic - A cure for Cron's chronic email problem
by reidrac on Friday May 25, 2012 @04:36AM
(#4022567)
All of them.
cron sends a mail if: a) there's output (stdout or stderr) or b) the command exit code isn't 0.
So I really don't understand the post when it says "Now when your cron job fails, you will never know about it.".
Well, if you script fails and still returns 0, your script is broken. If you script outputs stuff when it's not supposed to, it can't run from cron.