[fetchmail]RE: Fetchmail-friends digest, Vol 1 #990 - 1 msg

Matthias Andree matthias.andree@gmx.de
Sat, 06 May 2006 14:23:02 +0200


"hemant" <hemant@teamlease.com> writes:

> Hey can anyone help me?
>
> I want to start fetchmail automatically whenever machines start on.  So what
> is the command for that?

Please:

1 - do not hijack other threads

2 - do not respond to digest posts

Some systems (SUSE Linux 10.0 for instance) use newer ISC Cron versions
which support a "@reboot" nickname in your crontab.

If yours does not, just use a rule that runs fetchmail every 30 minutes
and pipes the output into "grep -v" so it doesn't mail you the
"fetchmail: background fetchmail at 17916 awakened.", for example (put
this on a single line; assuming fetchmail were to be started for the
user james):

@reboot james /usr/local/bin/fetchmail

OR:

15,45 * * * * james /usr/local/bin/fetchmail | grep -v 'fetchmail: background fetchmail at .* awakened"

-- 
Matthias Andree