From owner-freebsd-questions Thu Dec 25 19:48:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA19107 for questions-outgoing; Thu, 25 Dec 1997 19:48:10 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from ncnatural.com (ncnatural.com [192.41.49.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA19066 for ; Thu, 25 Dec 1997 19:47:20 -0800 (PST) (envelope-from nickh@ncnatural.com) Received: from ol-bitchy.wierdorama (pm25-4-110.hp.infi.net [208.142.82.110]) by ncnatural.com (8.8.5) id WAA08121; Thu, 25 Dec 1997 22:46:27 -0500 (EST) X-Authentication-Warning: ncnatural.com: Host pm25-4-110.hp.infi.net [208.142.82.110] claimed to be ol-bitchy.wierdorama Message-ID: <34A32812.299C@ncnatural.com> Date: Thu, 25 Dec 1997 22:44:18 -0500 From: Nick Holshouser X-Mailer: Mozilla 3.0Gold (Win95; I) MIME-Version: 1.0 To: "Robert J. Lynn Jr." CC: freebsd-questions@freebsd.org Subject: Re: How do you get pppd to save ip to file? References: <199712260308.DAA08994@techster.dyn.ml.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk this works for me: netstat -rn | tail -1 | awk '{print $2}' > file use a shell script to start ppp on your system and put this line after the ppp start command note: on my systems netstat nicely puts the line with my IP on the bottom, so tail -1 works. -- Nick Holshouser nickh@ncnatural.com http://NCNatural.com North Carolina's #1 Web Resource