Closed GoogleCodeExporter closed 8 years ago
Hi,
emails won't stop a cron process but the fact that you have some may indicate
that your task is generating errors which are sent to your local mailbox. You
can read those with 'mail' in the terminal. It's not the best of interfaces
(heh) but there may be a way to teach Apple Mail to read local mailboxes as
well. At least there used to be in 10.0 but I haven't tried in ages.
To prevent the sending of errors and output, add any one of the following at
the end of the line for each cron job to redirect output to /dev/null.
>/dev/null 2>&1.
OR
&> /dev/null
Or you can set the MAILTO env variable:
MAILTO=""
Or you can set this to your preferred email address to receive the message
elsewhere, probably a good idea for debugging.
See also:
http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/
Original comment by sven.a.s...@gmail.com
on 3 Nov 2010 at 10:43
Original comment by sven.a.s...@gmail.com
on 23 Nov 2010 at 7:14
Original issue reported on code.google.com by
dond...@gmail.com
on 28 Oct 2010 at 6:01