-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 28 Aug 2003 05:46:25 -0400, Juan Martinez wrote:

> > I can see that now! It has been running every minute, and filling my
> > mailbox with notices! How do I get rid of the notification function?
> > 
> > MAILTO= didn't work.
> 
> Redirect the output to /dev/null  Cron uses /bin/sh as its shell so your
> redirection would look like this "fetchmail >&/dev/null"  That redirects
> stdout as well as stderr to /dev/null.  Read the man page for bash and
> look for REDIRECTION for an explanation.

That way you would lose any error output from fetchmail which is most
likely not what you would like. Instead, run fetchmail in daemon mode
triggered from a cron job. That is, create a cron job that starts
fetchmail in daemon mode once a day or several times a day to make
sure that after a reboot your user's fetchmail daemon will be started
again. For that cron job, feel free to redirect stdout/stderr to
/dev/null. In daemon mode, fetchmail submits notification messages
about major errors such as ongoing connection failures.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/TmPA0iMVcrivHFQRAqhxAJ9y9SjD+CfdOVt2j/Kssp7r4cfzKQCePQ9l
t1EHYalcDu+I+1DgZPXbrnU=
=cMyW
-----END PGP SIGNATURE-----


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to