Activities

March 2010
M T W T F S S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Disabling sending cronjob mails

I faced an issue with disk quota with a user accounts. After checking, it’s noticed that he has set few cronjobs which run every 3 minutes and sending log emails to the same user’s email as well caused such trouble.

Solution is,

I have added a line for stopping cron to send log messages and routed the output of said task to /dev/null.

MAILTO=””

1. */3 * * * * /usr/bin/php /var/www/cron_send_alert.php <strong>&> /dev/null</strong>

-njoy

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>