fetchmail-friends
[Top] [All Lists]

Re: Poll fetchmail only when ppp is up

2001-02-12 03:57:35
If you don't run fetchmail in daemon mode. Just edit crontab

#crontab -e
0,10,20,30,40,50 * * * * /root/runfetchmail    #run fetchmail every 10
minutes

#cat /root/runfetchmail

if [ -r /var/run/ppp0.pid]; then
fetchmail -f ~/.fetchmailrc
fi



----- Original Message -----
From: "Philip Immoos" <immoos(_at_)hotkey(_dot_)net(_dot_)au>
To: "Fetchmail" <fetchmail-friends(_at_)ccil(_dot_)org>
Sent: Monday, February 12, 2001 5:26 PM
Subject: Poll fetchmail only when ppp is up


Does any one know how to run fetchmail only when the ppp modem conection
is up.

I have thought to run it in the ip-up file in the /etc/ppp/ directory.
But how do you stop it.


_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/mailman/listinfo/fetchmail-friends





<Prev in Thread] Current Thread [Next in Thread>