Email from Cron will not stop

Email from Cron will not stop

Posted by: jeffjones
Posted on: 2006-02-27 10:56:00

I added a line to a crontab to update my awstats hourly about a month ago. When I initially set it up I also added a line to email me when the update was completed. After a week or so of things going fine I removed this line from the crontab I set up and have recently confirmed that this line is in fact gone. However, I am still receiving hourly emails telling me the update has taken place. This has been going on now for 3 weeks or so after removing the request for the email updates. Any one know how to fix this?

Google knows all

Re: Email from Cron will not stop

Posted by: matttail
Posted on: 2006-02-27 19:49:00

I think what's happening is the error messages are still being sent to the E-mail address associated with the user. If that's right, all you need to do is set the error output to null.

Here's a quote from a user comment in the K-base crontab article:

Just add

> /dev/null

at the end of a command so that stdout doesn't get emailed to you. If you don't want stderr either, do:

> /dev/null 2>&1

You might consider sending stdout and stderr to logfiles instead of to the bit bucket.



-Matttail

Re: Email from Cron will not stop

Posted by: jeffjones
Posted on: 2006-02-27 21:21:00

Great! Thanks for the reply. That should fix it.

Google knows all

Re: Email from Cron will not stop

Posted by: jeffjones
Posted on: 2006-02-28 20:39:00

Thanks of the reply that should fix it.

Google knows all

Tags: googleemailcrontabawstatscron