Date: Fri, 11 Sep 2020 22:59:23 +0200 From: Olivier Certner <olivier.freebsd@free.fr> To: freebsd-questions@freebsd.org Subject: Re: How to silence cron? Message-ID: <3151441.KMTXMz9Kuk@ravel> In-Reply-To: <20200911184417.GF91422@bastion.zyxst.net> References: <b0f49812-4d0a-e301-3ef2-816431ae3dbe@nethead.se> <20200911184417.GF91422@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, > 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). -- Olivier Certner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3151441.KMTXMz9Kuk>