4 ms·
> On the cron case, what are your thoughts on the email notifications? In what ways are the useful or useless? I'm not an expert in this stuff. I really dislik
by slooonz 5y ago
> On the cron case, what are your thoughts on the email notifications? In what ways are the useful or useless? I'm not an expert in this stuff.
I really dislike it. It’s probably the biggest pain point in cron IMO.
1. At the age of DKIM, DMARC and SPF, setting up a working MSA on every server that runs cron can be a real pain. Not always, it depends on the exact situation, but it can be.
2. The biggest issue is that it sends a mail whenever the cron job outputs anything, even if it is successful (exit code 0). This is batshit insane.
3. Nowadays, mail only notification are a bit limitating anyway.
- graderjs 5y agoYeah, I suppose you could send the mail to an intermediary and filter it. But I agree with you. I have a 5 minute cron on my server, and when I login to root. "You have 4487 messages". Thanks, cron! :P :) xx
- pR0Ps 5y agoFor 2, see chronic[0] (part of moreutils[1]). It runs a command, muting stdout and stderr unless the command exits with a non-zero status. [0]: https://manpages.debian.org/jessie/moreutils/chronic.1.en.html https://manpages.debian.org/jessie/moreutils/chronic.1.en.ht... [1]: https://joeyh.name/code/moreutils/ https://joeyh.name/code/moreutils/