The script I use is the following:


#!/usr/bin/perl

while (1) {
        if (-e '/var/run/ppp0.pid'){
        sleep 60;
        }
        else {
                system "/etc/ppp/ppp-on";
                sleep 60;
        }
}



What it does is:

Check, if ppp0 is present,
if yes do nothing and do check again in 60 second
if no run /etc/ppp/ppp-on
then wait 60 seconds and go to the checking again

Hope this helps.

Regards
Bernhard

Eric Dahnke wrote:

> Hello,
>
> Can someone give some hints as to a configuration option, perl, or shell script to 
>redial if pppd does not connect. I call ppp-on from crontab.
>
> I've seen a perl script which redials if chat receives BUSY, but what is chat 
>completes, but pppd does not. I suppose I could wrap ppp-on inside a script which is 
>called from the crontab, but how best to determine that pppd failed?
>
> ps aux?
>
> many thanks - eric
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]

--
Bernhard L�der
[EMAIL PROTECTED]
ICQ 260 70583



-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to