Date: Fri, 11 Sep 2020 15:11:49 +0200 From: Per olof Ljungmark <peo@nethead.se> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: How to silence cron? Message-ID: <b0f49812-4d0a-e301-3ef2-816431ae3dbe@nethead.se>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b0f49812-4d0a-e301-3ef2-816431ae3dbe>