On Sun, 16 Apr 2000, Karthik Vishwanath wrote:

> Hi,
> 
> I dial to connect to my ISP and (obviously!) get a random ip#. I get it 
> now by /sbin/ifconfig -a and reading the lines there. 'hostname' gives me 
> the name I have given my machine. Is there any other program that I can 
> run that will give me this info? 

Have a look at /etc/ppp/ip-up and /etc/ppp/ip-down
They should be documented somewhere. They are scripts that are run on
opening and closing the link. ip-up has the ip address as one of its
arguments, so you could save/mail/whatever it from here.

Frank

> Thanks,
> -Karthik.
> 
> -------------------------------------
> Whatever you want to do, you have to do something else first.
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

HI! I'm a .signature virus! cp me into your .signature file to help me spread!


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to