How to silence cron?

tech-lists tech-lists at zyxst.net
Fri Sep 11 18:44:49 UTC 2020


On Fri, Sep 11, 2020 at 03:11:22PM +0200, Per olof Ljungmark wrote:
>Hi,
>
>What would be the proper way to silence output from a php script running
>under cron? I have tried variations of /dev/null and 2>&1 but getting
>nowhere.

If this crontab is only for www then, as root, you can crontab -u www -e which
works from a 12.1-p9 machine.

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.
-- 
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200911/f136057c/attachment.sig>


More information about the freebsd-questions mailing list