Hi,

OK, misunderstod, sorry. Try to start your ppp session via the following
script:

#!/usr/bin/perl

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



It checks, if ppp0 exist.

If yes it sleeps for 60 seconds and checks again.

If no it  starts /etc/ppp/ppp-on (or whatever script you use to connect)


Hope this helps

Bernhard



Nerijus wrote:

> No, I want to redial when at the first attempt
> I get busy signal, not when connection is dropped.
>
> > Try to add:
> >
> > persist
> >
> > into your pppd options
> >
> > This will redial your connection after it dropped.
> >
> > In addition you can also add:
> >
> > holdoff 600
> >
> > which will wait 10 minutes (600 seconds) before it redials a dropped
> > connection. This is handy, if you have a provider fault, that
> > will cost you
> > a phone call every time to try  (like in Australia, when you
> > make a local
> > call it costs $0.25 every time the other side picks up). So
> > if the other
> > side picks up and cannot establish the connection you will
> > have a lot of
> > waste phone calles in 10 minutes.
> >
> > Hope this helps
> >
> > Bernhard
> >
> > Nerijus wrote:
> >
> > > How to automatically redial on busy and how to
> > > cycle through different phone numbers until I get
> > > a connection? What is better to use in this case -
> > > chat or dip?
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe
> > linux-ppp" in
> > > the body of a message to [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-ppp" in
> > the body of a message to [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]


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

Reply via email to