From owner-freebsd-questions Tue Feb 16 11:23:26 1999 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 LAA23277 for ; Tue, 16 Feb 1999 11:23:21 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA14077; Tue, 16 Feb 1999 19:23:06 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id TAA00594; Tue, 16 Feb 1999 19:06:53 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199902161906.TAA00594@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Mark Hannon cc: freebsd-questions@FreeBSD.ORG Subject: Re: ppp/chat no longer able to access /dev/tty from exec In-reply-to: Your message of "Mon, 15 Feb 1999 21:39:07 +0100." <36C885EB.79ADCB8D@stockholm.mail.telia.com> Date: Tue, 16 Feb 1999 19:06:52 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You may want to look at the latest version at http://www.Awfulhak.org/ppp.html There's an entry in the ppp.conf.sample file that uses a script called login-auth (also supplied) for exactly this purpose. The end result is that when ppp connects, it throws a login prompt up on your X display. If you want to stick with your existing stuff, you need to do the echo & read from descriptor 3 now: #! /bin/sh echo -n "($*) " >&3 read x <&3 echo $x but this presumes that you've started ppp in interactive mode (it's got a controlling terminal). > Hi, > > I have previously used the following scripts to dial > into my employer. I am prompted for userid and a password > (which is dynamically created for me by a little credit > card security number generator). > > I haven't logged onto work for some months, and now, when > I try to use my recently upgraded 3.0 box to do it the > chat script doesn't work. The !/etc/ppp/prompt_password > no longer attaches to the ppp terminal but connects to > some other file descriptors. Is there any way to get the > old behaviour back? (I had a brief look at the code but > got quickly overwhelmed...) > > Here are the relevant portions: > > >From ppp.conf: > set login "TIMEOUT 5 Username:-\\r-Username: > !/etc/ppp/prompt_passwd word: !/etc/ppp/prompt_passwd ~" > > > doorway:~> more /etc/ppp/prompt_passwd > #!/bin/sh > echo -n "($*) " >&2 > read x > echo $x > exit 0 > > Thanks, Mark -- 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