1828442 Members
2867 Online
109977 Solutions
New Discussion

Cron email

 
SOLVED
Go to solution

Cron email

I am using Mandrake 8.1 and part of it's job is as a postfix mail server. I am running fetchmail in cron to retrieve email from various accounts. However, whenever the cronjob runs it emails me the log file as root. This is not a major problem but it is annoying. How can I stop cron from mailing me it's log everytime it runs this command?

Thanks in advance,

Christian Briddon
1 REPLY 1
Carsten Dahms
Occasional Advisor
Solution

Re: Cron email

Edit your crontab and insert a redirection to /dev/null:

08 15 * * * /foo/bar > /dev/null

Another posibility is setting a "MAILTO":
MAILTO="me@here.org"
47 11 * * * job/with/interesting/output
#
MAILTO=""
* * * * * job/with/annoying/messages

HTH