How to disable email with cronjobs

By default cron jobs sends a email to the user account executing the cronjob. If this is not needed put the following command At the end of the cron job line .

>/dev/null 2>&1

For example:
* 1 * * * php /www/daily.php >dev/null 2>&1

Social tagging:

Leave a Reply