Re: fetchmail question
Andre Berger <uzscd5@uni-bonn.de> writes:
> "john smith" <inquirer23@hotmail.com> writes:
>
> > hey,
> >
> > I would like to know how to configure fetchmail to run in the background
> > when I connect to my isp and collect my mail and polls my mail server every
> > hour while I am connected and then exits automatically if I disconnect to my
> > isp.
> >
> > thanks in advance
> >
> > sincerely,
> >
> > john
>
> /etc/ppp/ip-up.d/fetchmailstarter
>
> #!/bin/sh
> su - $YOURUSER -c 'fetchmail -d 3600'
>
> /etc/ppp/ip-down.d/fetchmailstopper
>
> #!/bin/sh
> su - $YOURUSER -c 'fetchmail -q'
> kill -9 $(cat /home/$YOURUSER/.fetchmail.pid 2>/dev/null) 2>/dev/null
>
> Could also be put in a loop for more than one user.
Sorry, must be
su - -c 'fetchmail -d 3600 ' $YOURUSER
resp.
su - -c 'fetchmail -q' $YOURUSER
Should get me stronger glasses...
--
Andre Berger [andre.berger@topmail.de]
Reply to: