From owner-freebsd-questions Sat Sep 27 08:25:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA27160 for questions-outgoing; Sat, 27 Sep 1997 08:25:26 -0700 (PDT) Received: from mail.telstra.com.au (mail.telstra.com.au [192.148.160.15]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA27155 for ; Sat, 27 Sep 1997 08:25:22 -0700 (PDT) Received: (from uucp@localhost) by mail.telstra.com.au (8.8.2/8.6.9) id BAA19193; Sun, 28 Sep 1997 01:24:49 +1000 (EST) Received: from mail-gw.fwall.telstra.com.au(192.148.147.15) via SMTP by mail.telstra.com.au, id smtpd019184; Sun Sep 28 01:24:25 1997 Received: (from uucp@localhost) by mail-gw.fwall.telstra.com.au (8.8.2/8.6.9) id BAA23607; Sun, 28 Sep 1997 01:24:23 +1000 (EST) Received: from cdn-mail.dn.itg.telecom.com.au(144.135.109.134) by mail-gw via smap (V1.3) id sma023600; Sun Sep 28 01:24:13 1997 Received: from io.telecom.com.au (io.telecom.com.au [172.57.9.32]) by cdn-mail.telecom.com.au (8.8.2/8.6.9) with ESMTP id BAA23383; Sun, 28 Sep 1997 01:24:12 +1000 (EST) Received: (from tdwyer@localhost) by io.telecom.com.au (8.8.3/8.8.3) id XAA07582; Sat, 27 Sep 1997 23:25:29 +0800 (WST) Date: Sat, 27 Sep 1997 23:25:29 +0800 (WST) From: Terry Dwyer 61 8 9491 5161 To: Carey Nairn cc: questions@freefall.FreeBSD.org Subject: Re: iijppp and chat scripts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. > 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)