From owner-freebsd-questions Sat Sep 27 15:48:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA17729 for questions-outgoing; Sat, 27 Sep 1997 15:48:55 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA17692 for ; Sat, 27 Sep 1997 15:48:42 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id XAA05609; Sat, 27 Sep 1997 23:23:35 +0100 (BST) Message-Id: <199709272223.XAA05609@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Terry Dwyer 61 8 9491 5161 cc: Carey Nairn , questions@freefall.FreeBSD.org Subject: Re: iijppp and chat scripts In-reply-to: Your message of "Sat, 27 Sep 1997 23:25:29 +0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 27 Sep 1997 23:23:35 +0100 From: Brian Somers 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. 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 , , Don't _EVER_ lose your sense of humour....