Email from Cron will not stop


#1

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


#2

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

[quote]/dev/null

[/quote]

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

[quote]/dev/null 2>&1

[/quote]

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

-Matttail


#3

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

Google knows all


#4

Thanks of the reply that should fix it.

Google knows all