Re: Poll fetchmail only when ppp is up2001-02-12 12:40:30Le Van Chi: #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 that's about the same approach i use. in the linkup file a file is created as a sentinel to a crontab-script, which runs fetchmail only if this file is present. linkdown, therefor, removes the file. clemens
|
|