On Sun, 19 Nov 2000, Roger Sherman wrote:
> Can anyone tell me how to set up Fetchmail so that it runs as a daemon in
> the background? In fetchmailconf, for cycles to skip between polls, I put
> 300, as I wanted it to check every 5 minutes. But, if I type fetchmail at
> the command prompt, it just runs once, and details everything its doing
> (checking messages, how many messages, flushing messages) in the
> terminal. I clicked Invisible mode in fetchmailconf, but then I hit the
> Run Fetchmail button, and it brings up the fetchmail run window...and it
> still only seems to check once.
>
> I'm using 7.2, and fetchmailconf 1.28, if that makes a difference.
>
> Thanks!
>
>
>
You don't need fetchmailconf :-)
fetchmailconf will make a .fetchmailrc file in your home directory. So
you set up your username, password, mail server, and mail server protocol
with fetchmailconf.
Then at the command line type fetchmail -d <interval> -s -f
That will set the -d tells fetchmail to fork into the background the
interval is how often you want it to check -s will make it silent -f will
flush messages off of the server. Assuming you have a POP e-mail account
of course :-)
--keep will keep messages on the server.
If you type nohup fetchmail -d <interval> -s -f then fetchmail will
continue to run even when you log out of Linux or close the terminal
window you are running it in.
Dan