Crontab

Crontab

Posted by: ben.palumbo
Posted on: 2009-02-26 15:06:00

Have the line below in my crontab and I still am getting emails that the job ran. Any suggestions why I am getting emails eventhough I have /dev/null and the job runs correctly.

0 * * * * curl http://<domain.com>/marcron.php?code=9290221 >/dev/null

Re: Crontab

Posted by: akuretz
Posted on: 2009-02-26 15:42:00

See here
http://wiki.dreamhost.com/Crontab#MAILTO_variable_requirement

Re: Crontab

Posted by: ben.palumbo
Posted on: 2009-02-27 04:32:00

Yes, those are very good instructions and the mail variable is set. Most of my other cron jobs also have >/dev/null at the end of the line and I do not get an email output from them. Just the one mentioned at the first post.

Re: Crontab

Posted by: sdayman
Posted on: 2009-02-27 06:43:00

Maybe this will quiet it down:
0 * * * * curl http://<domain.com>/marcron.php?code=9290221 >/dev/null 2>&1

I've used it so many times I've forgotten the reasoning. There's standard out and I think system message out. Now both of these will go to /dev/null.

-Scott

Re: Crontab

Posted by: akuretz
Posted on: 2009-02-27 12:09:00

standard error and standard out

Tags: jobcrontab