"john smith" <[EMAIL PROTECTED]> 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. -- Andre Berger [EMAIL PROTECTED]