Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Cronic - A cure for Cron's chronic email problem. Parent comment
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.
There are no comments on this comment yet.
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.