Subject: Re: PPP troubles :(
To: Colin Wood <cwood@ichips.intel.com>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 09/22/1997 15:13:05
>
> Cyberian wrote:
> >
> > Using the ppp.setup scripts, I need to establish a PPP connection with my ISP.
> > I have used these scripts many times before in NetBSD, and have succeeded
> > with some of my previous ISP's. It dials, answers, sends the login/pass,
> > but there is a third prompt to ask for the protocol:
> >
> > Enter protocol type(PPP/SLIP):
> >
> > Since this prompt is more than one word, I am wondering how I can make the
> > chat script work. The chat script first waits for username:, sends the
> > login, waits for password:, sends the password, but how do I put a prompt
> > like the one above, and make it send the word "PPP"? Could someone help?
> > Since all the prompts that my previous ISP's have sent have been 1 word, I
> > am confused now. Well, please reply soon. Thanks.
>
> Multiple words don't matter, all you need to do is match the last few
> characters of the string, anyway. I'd try something like
>
> "SLIP):"
>
> That should be enough. When you get that match, just send "PPP" and off
> you go :-)
As everyone mentioned, you don't need a full word. You just need to match
enough that you're confident you're at the right place. Even "SLIP" or
"PPP" would be fine.
Take care,
Bill