From owner-freebsd-questions Fri May 22 09:20:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16158 for freebsd-questions-outgoing; Fri, 22 May 1998 09:20:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp.enteract.com (thor.enteract.com [206.54.252.9]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA16127 for ; Fri, 22 May 1998 09:20:06 -0700 (PDT) (envelope-from tkim@mcs.net) Received: (qmail 17320 invoked from network); 22 May 1998 16:20:01 -0000 Received: from kebob-14.d.enteract.com (HELO mcs.net) (207.229.149.219) by thor.enteract.com with SMTP; 22 May 1998 16:20:01 -0000 Message-ID: <3565A7BA.13386F29@mcs.net> Date: Fri, 22 May 1998 11:28:42 -0500 From: Anthony Kim Organization: deus ex machina X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: PPP Scripting Advice Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey Folks, Two questions. I use the following dial up script for ppp: #!/bin/sh pppd /dev/cuaa0 115200 connect 'chat -f /etc/ppp/dial.chat' & How would I configure it to echo something like Connection completed. Your IP address is: $$ 2nd question: I run the following to kill pppd: #!/bin/sh echo "Killing pppd, please wait." cat /var/run/ppp0.pid | xargs kill It works fine except I have the feeling that I'm missing something here. It seems too easy. netstat -rn and ifconfig -a show the kill is complete and everything is flushed. If anyone has a good script, I'd love to hear it. rgds, Anthony -- Fingerprint: 2CDE 798E 4140 332C 72D9 0F57 B786 DA9B CBC3 4592 "The conclusion I have reached is that reading is an operation without object; or that its true object is itself." --Italo Calvino "First and foremost, I think of myself as a reader." --Borges To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message