Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 1997 22:44:18 -0500
From:      Nick Holshouser <nickh@ncnatural.com>
To:        "Robert J. Lynn Jr." <root@techster.dyn.ml.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do you get pppd to save ip to file?
Message-ID:  <34A32812.299C@ncnatural.com>
References:  <199712260308.DAA08994@techster.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34A32812.299C>