goer / cronnix

Automatically exported from code.google.com/p/cronnix
0 stars 0 forks source link

Stopped working #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have 10.6 and the latest cronnix. I setup some task that would send me an 
email about every 15 minutes of every hour. It was working fine for about 3 
days but now appears to have stopped. The tasks seem fine when I run them 
manually with the run option. Not sure what the next debugging step would be.

I did noticed that from the terminal I got a message about new mail and when I 
issued the "mail" command I had alot of email from crontab. Could the emails be 
congesting things? Is there a way to configure cron/cronnix to stop sending me 
the emails?

Original issue reported on code.google.com by dond...@gmail.com on 28 Oct 2010 at 6:01

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago

Original comment by sven.a.s...@gmail.com on 23 Nov 2010 at 7:14