From owner-freebsd-hackers Thu May 4 13:05:17 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA20920 for hackers-outgoing; Thu, 4 May 1995 13:05:17 -0700 Received: from devnull.mpd.tandem.com (devnull.mpd.tandem.com [131.124.4.29]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA20913 for ; Thu, 4 May 1995 13:05:13 -0700 Received: from olympus by devnull.mpd.tandem.com (8.6.8/8.6.6) id PAA12187; Thu, 4 May 1995 15:04:57 -0500 Received: by olympus (4.1/TSS2.1) id AA22825; Thu, 4 May 95 15:05:08 CDT From: faulkner@mpd.tandem.com (Boyd Faulkner) Message-Id: <9505042005.AA22825@olympus> Subject: Re: slattach!!!!!!! To: nate@trout.sri.MT.net (Nate Williams) Date: Thu, 4 May 1995 15:05:07 -0500 (CDT) Cc: faulkner@devnull.mpd.tandem.com, freebsd-hackers@freefall.cdrom.com In-Reply-To: <199505041820.MAA16185@trout.sri.MT.net> from "Nate Williams" at May 4, 95 12:20:31 pm X-Mailer: ELM [version 2.4 PL17] Content-Type: text Content-Length: 1842 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > > > Actually, in the case of PPP/SLIP, I think expect is overkill. Chat > > > does the job very well and is already part of the system. I have not > > > yet found a case where expect works any better than a decent CHAT > > > script, and there are good examples of complex CHAT scripts in the > > > O'Reilly UUCP books. > > > > > Can you use chat to grab variables? > > Chat's job is to dial into a machine and login. No more, no less. If > you need extended functionality then expect may be the tool for you, but > for most folks it works pretty well. > > > I have an internet provider that assigns a different IP address > > everytime you slip in. (You can get a dedicated line but they cost > > more.) The address is assigned by which port you call in on and that is > > determined by a rotary. Worse, you can be attached to any of a number > > of systems so you need to grab both the IP address assigned to you and > > the name of the machine you attached to so you can add the route. > > This sounds like a job for ..... 'PPP'. SLIP isn't designed for this > sort of thing, and you have to add all sorts of additional scripts and > funky stuff to make it work, where it's all builtin with PPP. > > Does your ISP support PPP? > > > Nate > Not offically, but it does work. I was simply responding to your statement that you had "not yet found a case where expect works any better than a decent CHAT script". I have. I agree that PPP is a better solution. Nevertheless, this is a "real world" example of CHAT not filling the bill. Sometimes, dialing in and logging in isn't enough. Boyd -- _______________________________________________________________________ Boyd Faulkner faulkner@isd.tandem.com _______________________________________________________________________