fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] cron - redirecting output to /dev/null

2002-10-08 14:07:27
On Tuesday, October 8, 2002, at 01:44  PM, Sunil Shetye wrote:

Quoting from Paul Mylchreest's mail on Tue, Oct 08, 2002 at 01:26:42PM -0400:
Because fetchmail seems to crash sometimes when running in daemon mode,
I decided to run it periodically using cron. This is my entry in the
user's crontab:

0-59/5  *       *       *       *       /usr/local/bin/fetchmail 2>&1
/dev/null

I think your syntax is wrong. ">/dev/null" should occur before "2>&1".


You could be right. It solves the problem. However, I thought:

fetchmail 2>&1 >/dev/null
(redirect stderr to stdout and pipe stdout to null)

equivalent to:

fetchmail 2> /dev/null  1>/dev/null

Bracketing solves the problem also:

(fetchmail 2>&1) >/dev/null

I understand better pipelines now. Thanks for the help.

Anyway, I think you should first try running fetchmail 6.1.0 in daemon
mode now as a few bugs relating to this have been fixed recently.


That was the first thing I tried. It did not last 24 hours.

Thanks for the help,

Paul Mylchreest
--------------------
"Specifications are for the weak and timid!!"
       Klingon Software Quality Assurance, Tom Fevens