in reply to RE: IP address!
in thread IP address!

Thats a really good point, something that is kind of frustrating because it makes the code more complex. Also, note that ifconfig is a linux thing, not an NT thing... so this thing is not portable.
$_ = `/sbin/ifconfig $if`; (/inet addr:((\d{1,3}\.?){4})/m) ? ($ipaddr = $1) : (warn 'ifconfig failed');
I seem to remember there being a get function that does this too, but I can't remember it at the moment.

Replies are listed 'Best First'.
RE: RE: RE: IP address!
by Anonymous Monk on May 11, 2000 at 20:30 UTC
    NT DOES have ipconfig, however..