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

Re: Cron/Fetchmail mail



Most probably the errors are outputted to the stderr file descriptor
while
the usual messages are outputted to the stdout descriptor. You have
redirected to
/dev/null the stdout only. To suppress error messages you need to add
the redirection for stderr. The crontab entry shold be as follows

*/30    *       *       *       *       /usr/bin/fetchmail > /dev/null
2> /dev/null

Alexey Fadyushin
Brainbench MVP for Linux
http://www.brainbench.com


Edward Dekkers wrote:
> 
> This should be simple, but I'm not sure what to search on with google
> (whatever I tried was irrelevant to my situation).
> 
> I have put in a crontab:
> 
> */30    *       *       *       *       /usr/bin/fetchmail > /dev/null
> 
> This works great unless there are errors, then they are mailed to the
> crontab owner.
> 
> Can they be suppressed completely? Even when there's an error?
> 
> Regards,
> Ed.
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




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