How to silence cron?
Per olof Ljungmark
peo at nethead.se
Fri Sep 11 13:12:04 UTC 2020
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.
Abbriviated crontab looks like
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
MAILTO="someimportantperson"
*/5 * * * * su -m www -c "/usr/local/bin/php
/usr/local/www/pathtoscript.php"
Roots shell is FBSD standard csh
www's shell is /usr/sbin/nologin
With the rest of the crons I do want mail to be sent, just not this one.
Thanks,
Per
More information about the freebsd-questions
mailing list