Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

98
OpenBSD adds "-n" option to crontab(5) to suppress mail when the run was successful
Post Body

Managing the flow of email coming from cron(8) can be a challenge, especially when you manage a lot of machines. Either cron always mails, or you pipe the output to /dev/null and never see anything, or you have to use wrapper scripts.

To improve the situation I proposed to add a simple crontab(5) convenience option called "-n" (mnemonic "No mail if run successful"). An example of using the "no mail if success" option is below:

* * * * * -n cp -rv src/ dest/

With the above example crontab(5) entry you'll only receive a mail from cron(8) if the cp(1) encountered some kind of error. You'll also have in that email up until what point cp(1) actually was able to copy files.

More information and the patch: https://marc.info/?l=openbsd-tech&m=152874866117948&w=2

I hope more cron implementations implement this feature! :-)

Author
Account Strength
90%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,219
Link Karma
3,157
Comment Karma
613
Profile updated: 2 days ago
Posts updated: 7 months ago
j0b

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago