On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani wrote:
> Hi,
> I am looking for a way to do these two:
> 1. Finding out how many eths the system have (eth0, eth1 ... ethn)
[ ... ]
>
> I need this for the internet tool (http://iwiz.linux-kinneret.org), I want to
> be able to present to the user this information so he would know which
> interface his modem is connected to more easily, in case he have more then
> one ethernet card.
>
You seem to be primarily interested in interfaces that are up. Why
don't you check the output of /sbin/ifconfig?
--
Shaul Karl, [EMAIL PROTECTED] e t
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]