Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 1997 18:18:39 -0800 (PST)
From:      Charlie Roots <osiris2002@yahoo.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:  <19971227021839.9964.rocketmail@send1a.yahoomail.com>

next in thread | raw e-mail | index | archive | help
Hi Robert;
Here's the stuff you need;

1. cd /var/log
2. touch ip-dynamic.log
3. cd /etc/ppp
4. touch ip-up
5. chmod 0755 ip-up
6. ee ip-up
7. ADD THE FOLLOWING TEXT;

date >> /var/log/ip-dynamic.log
echo $4 >> /var/log/ip-dynamic.log

EXIT ee and save the file.

Next time you run the pppd 
you will have the date and ip ($4) written
to the file /var/log/ip-dynamic

(NOT sure that this will work wih user ppp)

Greetings




---"Robert J. Lynn Jr." <root@techster.dyn.ml.org> wrote:
>
> IS there a way i can get JUST MY IP number to be saved to a tmp file
on connections?
> 

==
MAY THE FORCE BE WITH YOU.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971227021839.9964.rocketmail>