Skip to content
Advertisement

Linux ubuntu how to stop cron status mails like “Cron /usr/bin/php /var/www/myproject”

Since couple of days i’m getting unwanted cron status emails from my server. Tried MAILTO=”” but still receiving mails. Please help me to get rid of this emails.

Thanks in advance.

Advertisement

Answer

cron will email you anything that appears on stdout, so redirect stdout to /dev/null in your crontab entries. eg:

5 21 * * 1-5  { echo stuff to do; } >&/dev/null
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement