Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 1997 23:23:35 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>
Cc:        Carey Nairn <cpn@ccd.tas.gov.au>, questions@freefall.FreeBSD.org
Subject:   Re: iijppp and chat scripts 
Message-ID:  <199709272223.XAA05609@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Sat, 27 Sep 1997 23:25:29 %2B0800." <Pine.BSF.3.91.970927232108.6179A-100000@io.telecom.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sat, 27 Sep 1997, Carey Nairn wrote:
> 
> I don't think you have to wait for the last char in the prompt string to 
> arrive before you can do a match.  It may be worthwhile to try matching
> on the string "name" in the termserver's prompt assuming what you've 
> shown below is the actual prompt you see.

Or you could do a few expect/sends for different bits of the same 
prompt.  For example, if you've got

login on abcde: 
or
login on defgh: 

(with spaces at the end of each), you could have a chat that does

 set login "login\son\s \"\" \\s MyLogin"

> > hi guys,
> > 
> > I'm looking for a chat guru...
> > 
> > When I dial in to my provider, I will get a different prompt depending on
> > which terminal server I connect to.  Is there a way in the login script to
> > test for on of multiple different prompts?
> > 
> > e.g.  
> > 
> > login to ts1, prompt is ts1name>
> > login to ts2, prompt is ts2name#
> > 
> > thanks,
> > Carey Nairn
> > 
> > 
> 
>    _-_|\    Terry Dwyer 	      E-Mail    Work: tdwyer@io.telecom.com.au
>   /     \   System Administrator             Private: tdwyer@omen.com.au
>   *_.^\_/   Telstra Corporation   Phone: +61 8 9491 5161  Fax: +61 8 9221 2631
>        v    Perth  Western Australia   (I do not speak for Telstra or Telecom)
> 

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709272223.XAA05609>