Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jul 1998 02:56:16 -0400
From:      Ron Steele <ron@dc.infi.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: interactive ppp chat script? 
Message-ID:  <9807011855.AA12542@ara.office.aol.com>
In-Reply-To: <199807011801.LAA23997@hub.freebsd.org>
References:  <Your message of Wed, 01 Jul 1998 01:40:08 %2B0100      <199807010040.BAA14035@awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I wrote an expect script to do just this. It doesn't behave well when
interacting with the modem to do the dial out.  I have tried adding extra
returns to the script and various other things, but nothing seems to make
the modem interact properly with the script.  Anybody know any secrets of
making this work.

Ron


At 11:03 AM 7/1/98 -0700, grady@scam.XCF.Berkeley.EDU wrote:
>Hmm.., clever!  But how do I capture the modem output to present
>the challenge to the user in the first place?
>
>	Steven
>
>> From:  Brian Somers <brian@Awfulhak.org>
>> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
>>       <http://www.Awfulhak.org>;
>> 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
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9807011855.AA12542>