From owner-freebsd-questions Wed Jul 1 16:10:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA11504 for freebsd-questions-outgoing; Wed, 1 Jul 1998 16:10:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA11489 for ; Wed, 1 Jul 1998 16:10:31 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (brian@localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id AAA26367; Thu, 2 Jul 1998 00:08:11 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199807012308.AAA26367@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: grady@scam.XCF.Berkeley.EDU cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: interactive ppp chat script? In-reply-to: Your message of "Wed, 01 Jul 1998 11:03:22 PDT." <199807011800.SAA10522@relay1.force9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Jul 1998 00:08:10 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hmm.., clever! But how do I capture the modem output to present > the challenge to the user in the first place? > > Steven Looks like what's really needed is an X app that will present a window, and read/write stdin/stdout in that window - that could be executed from the chat script with the ``!'' facility (see the ``chat'' example in ppp.conf.sample). Does anyone know of such a beast ? > > From: Brian Somers > > Subject: Re: interactive ppp chat script? > > You could use ``\\P'' in your chat script and then use pppctl to do a > > ``set authkey''. > > > > > 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." > > > > -- > > Brian , , > > > > Don't _EVER_ lose your sense of humour.... > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message