[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cron and getmail



I would recommend againts the 2>&1 part (redirecting standard error).

If an error do occour you will never know.

/jtm

> --Colonel Panic <colonel_panic_(_at_)_fnmail_(_dot_)_com> [010313 03:16]:
> > */15    *       *       *       *       /usr/local/bin/getmail
> > 
> > After reading the man page I assumed if getmail gave me no output,
> > cron wouldn't bother emailing me anything. I don't want to 
> change the
> > MAILTO variable to /dev/null as there are other outputs I want from 
> > the crontab. Any clues on how to stop this?
> 
> put >/dev/null 2>&1 at the end.
> 
> */15    *       *       *       *       /usr/local/bin/getmail
> >/dev/null 2>&1