OpenBSD adds "-n" to crontab(5): "no mail when everything went OK" reddit / BSD ---------------------------------------------------------------------- j0b · 2018-06-13 16:06 I hope other BSDs which based on vixie cron pick up this change too. An elaboration on why this is useful can be found here: https://marc.info/?l=openbsd-tech&m=152874866117948&w=2 ---------------------------------------------------------------------- GuinansEyebrows · 2018-06-13 21:32 this is awesome and so much more in line with philosophical basics (no output on success). ---------------------------------------------------------------------- mofomeat · 2018-06-13 23:20 Seems reasonable. ---------------------------------------------------------------------- LukeShu · 2018-06-14 00:13 I was going to mention cronic/chronic, but that message says everything I was going to. I'll note that the [cronic](http://habilis.net/cronic/) page contains a decent rant about the poor default behavior. ---------------------------------------------------------------------- squidfight · 2018-06-14 00:57 How will new people learn to redirect stdout and stderr to /dev/null? ---------------------------------------------------------------------- bijanebrahimi · 2018-06-14 04:25 Then the output redirection should be done conditionally and only on successs because the `stderr` is needed on failure. This can (and will) be hard to manage as (I Think) it is the exact motivation for this [patch][1]. Cheers [1]: https://marc.info/?l=openbsd-tech&m=152874866117948&w=2 ---------------------------------------------------------------------- 3G6A5W338E · 2018-06-14 11:26 How do you debug if stdout and stderr go to /dev/null? ---------------------------------------------------------------------- j0b · 2018-06-14 22:54 NetBSD picked it up too! :-) https://mail-index.netbsd.org/source- changes/2018/06/14/msg096035.html ---------------------------------------------------------------------- squidfight · 2018-06-15 01:59 If there is no error there is no problem to debug. ---------------------------------------------------------------------- 3G6A5W338E · 2018-06-15 08:12 Criminal negligence. ---------------------------------------------------------------------- TreeFitThee · 2018-06-16 12:32 Does anyone know if there are cron implementations in the Linux ecosystem that plan to include this? This solves an issue we have had at work for a long time. Unfortunately, we're 95% Linux. ---------------------------------------------------------------------- j0b · 2018-06-16 12:54 I’m working on a patch for cronie (used by redhat + centos). I already sent a patch to the Debian folks. Would be cool if more folks adapted this, but obviously I have no influence on their decisions. ---------------------------------------------------------------------- TreeFitThee · 2018-06-16 13:17 On the contrary. I'd say writing the patch gives you more influence over the decision than most. Thank you for the cronie patch. That's what we run. I'll look for it to hit upstream.