OVH Community, your new community space.

Cron Daemon Emails


gregoryfenton
21-01-2011, 13:32
Hi Gary

No, the MAILTO goes on its own line.

If you want to log the output of a particular cron job then you can add ">> /home/gary/mycron.log 2>&1" at the end of each line you wish to log.

A sample crontab showing logging, not logging, mailing and not mailing is below:

logging:
Code:
* * * * * /path/to/job1 >> ~/cron.log 2>&1
not logging:
Code:
* * * * * /path/to/job1 >> /dev/null 2>&1
mailing:
Code:
* * * * * /path/to/job1 >> ~/cron.log 2>&1
MAILTO=cronjobs@yourdomain
not mailing:
Code:
* * * * * /path/to/job1 >> ~/cron.log 2>&1
MAILTO=""

Gary Spires
21-01-2011, 11:19
Ok

would the line look like this

mailto=""/opt/drweb/update.pl

Gary

Gary Spires
20-01-2011, 14:50
Thank you.

gregoryfenton
20-01-2011, 13:19
Add a line to your crontab with the line
MAILTO=""

Gary Spires
20-01-2011, 12:57
Hi

Since updating my Plesk Control Panel to V10, I recieve around 30+ mails from Cron Daemon. Is there a way to stop them?

Gary