Stephen R Laniel <[EMAIL PROTECTED]> writes: > Is there a portable way to > > 1) get a list of all my NICs (eth0, eth1, ath0, whatever); > and > 2) get all their IPs? > > For some reason I'm having a hard time figuring this out. > And I need it to run across Gentoo, Debian, FreeBSD and > others, so it needs to be portable. I assume there's some > POSIX-approved way to do this, right?
ifconfig It lives in one of the sbins, usually, so probably isn't in your $PATH -- James jamesk[at]homeric[dot]co[dot]uk "The creator of the universe works in mysterious ways. But he uses a base ten counting system and likes round numbers." Scott Adams -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]