Subject: Re: PPP troubles :(
To: Cyberian <cyberian@cshore.com>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 09/12/1997 16:55:19
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 :-)

I hope this helps.

Later.

-- 
Colin Wood                                 cwood@ichips.intel.com
Component Design Engineer - MD6                 Intel Corporation
-----------------------------------------------------------------
I speak only on my own behalf, not for my employer.