From owner-freebsd-questions Sun Dec 29 07:33:28 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA03263 for questions-outgoing; Sun, 29 Dec 1996 07:33:28 -0800 (PST) Received: from user.netwalk.com (dh2@user.netwalk.com [205.156.197.170]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA03258 for ; Sun, 29 Dec 1996 07:33:25 -0800 (PST) Received: (from dh2@localhost) by user.netwalk.com (8.6.12/8.6.9) id KAA08664; Sun, 29 Dec 1996 10:35:05 -0500 Message-ID: Date: Sun, 29 Dec 1996 10:35:04 -0500 From: dh2@netwalk.com (Randall Hopper) To: dkelly@HiWAAY.net Cc: questions@freebsd.org Subject: Re: pppd and pap References: <199612270145.TAA05545@nexgen.HiWAAY.net> X-Mailer: Mutt 0.55 Mime-Version: 1.0 Reply-To: rhh@ct.picker.com In-Reply-To: <199612270145.TAA05545@nexgen.HiWAAY.net>; from dkelly@HiWAAY.net on Dec 26, 1996 19:45:04 -0600 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk dkelly@HiWAAY.net: |I'm getting tired of manually dialing out with kermit, logging in, |suspending kermit, and launching pppd. | |As a first stage in automating the process I thought I'd try automating the |login process with pap. Does anyone have an example they could share? I |think my problem is creating /etc/ppp/pap-secrets, I know the "secret", but |have questions about how to indicate my login user name. These are two different authentication mechanisms (text and PAP), so I'm assuming from what you said that you have a choice of authenticating either way before flipping into PPP mode. (?) If so, if you want to stay with the text authentication mechanism, you might just flip something like this in a script: DEVICE=cuaa0 exec 0< /dev/$DEVICE exec 1> /dev/$DEVICE chat ... chat ... slattach ... # wait for slattach to take control. exec 0<&- 1>&- which just keeps the serial device open across chats until slattach/ppp can take over ownership. Randall Hopper rhh@ct.picker.com