From owner-freebsd-questions Tue Jun 30 12:28:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17578 for freebsd-questions-outgoing; Tue, 30 Jun 1998 12:28:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from xcf.berkeley.edu (scam.XCF.Berkeley.EDU [128.32.43.201]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA17556 for ; Tue, 30 Jun 1998 12:28:41 -0700 (PDT) (envelope-from grady@scam.XCF.Berkeley.EDU) From: grady@scam.XCF.Berkeley.EDU Message-Id: <199806301928.MAA17556@hub.freebsd.org> Received: (qmail 20063 invoked from network); 30 Jun 1998 19:30:24 -0000 Received: from localhost (HELO scam.XCF.Berkeley.EDU) (127.0.0.1) by localhost with SMTP; 30 Jun 1998 19:30:24 -0000 To: freebsd-questions@FreeBSD.ORG Subject: interactive ppp chat script? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20058.899235023.1@scam.XCF.Berkeley.EDU> Date: Tue, 30 Jun 1998 12:30:24 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd like to set up ppp so that it is as automatic as possible, but part of the connection process involves a point where the user _must_ type something in response to a remote challenge system. Anyone have a suggestion on the easiest way to do this? At the moment, I see two options -- either write an "expect" script that runs ppp in interactive mode, which seems like overkill given ppp's configurability, or use the "!" form in the scripting language, which is not well documented, and does not make clear whether it can get input from the user. Since this will usually be run from an X window, I could also handle the interactivity with xprompt, but that's a little restrictive. It's also not clear how I can get the string _from_ the modem in order to display it to the user. I'd particularly appreciate hearing from people who have actually done this, to find out what people think is the best approach for this situation. -- Steven grady@xcf.berkeley.edu "Excuse me, could you point me to the restrooms?" "I'm not an art gallery guard. I'm a performance artist simulating a guard, you petit-bourgeois moron." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message