How to silence cron?
olivier.freebsd at free.fr
Fri Sep 11 20:59:31 UTC 2020
> I *think* you can set MAILTO: to /dev/null but I'm not 100% sure. But if you
> can, I think it'll do what you want, if that is to have no mail at all for
> www user.
I've been using `MAILTO=""` in the system crontab for years, seems to work
well (I just get spurious messages "mailed 1 byte of output but got status
0xffffffff" in logs, not sure if they are related).
This didn't work with the old `atrun`, which was then fixed as a side-effect
of integration into `cron` (by the way, the `atrun` manpage in 12 still does
not reflect it).
More information about the freebsd-questions