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