Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm getting crazy. Cron bombs me with e-mails, even if I set a nullstring as e-mail address and pipe the output to /dev/null.

Currently my crontab looks like this

MAILTO=""
# m h  dom mon dow   command
*/30 * * * *    php /var/www/dblx.io/www/tweetnest/maintenance/loadtweets.php > /dev/null 2>&1
*/35 * * * *    php /var/www/dblx.io/www/tweetnest/maintenance/loaduser.php > /dev/null 2>&1
00,15,30,45 * * * * curl -L -s -k https://dblx.io/fever/?refresh > /dev/null 2>&1
11 * * * *      php /var/www/piwik.dblx.io/www/misc/cron/archive.php --url=http://piwik.dblx.io > /dev/null 2>&1

I restartet cron, nullmailer, even the server. But no success. I still receive the output of the scripts.

Do you have any ideas

UPDATE

I changed MAILTO to a valid e-mail address and now don't receive unwanted e-mails. It seems that now the "> /dev/null 2>&1" is recognized. I put a simple echo line in my crontab and received the mail. The OS is Ubuntu Precise.

My problem is solved. Any ideas why Ubuntu behaves so strange?

share|improve this question
1  
Have you confirmed that the cron output matches up to the jobs in that file? (i.e. nothing hiding in /etc/cron*) –  Andrew B Jul 31 '13 at 22:03
    
Yes. I double checked everything. Any other Ideas? –  chris Aug 1 '13 at 6:47
    
To see if your MAILTO="" has any effect, have you tried to change it to some made-up value, such as MAILTO="superman@youaresofoobarexample.com", and then reading the mail log to see if cron tried to send the mail there? –  Janne Pikkarainen Aug 1 '13 at 6:51
    
what is the OS on your box and try to "... > /dev/null" –  Muhammad Aug 1 '13 at 7:34
    
Weird. I changed MAILTO to a valid e-mail address and now don't receive unwanted e-mails. It seems that now the "> /dev/null 2>&1" is recognized. I put a simple echo line in my crontab and received the mail. The OS is Ubuntu Precise. –  chris Aug 2 '13 at 6:44
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.