On Sunday 20 July 2003 10:36, you wrote:
> ביום ראשון 20 יולי 2003, 10:17, Mix Sella כתב:
> > On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote:
> > > On Saturday 19 July 2003 00:14, you wrote:
> > > > 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?
> > >
> > > I am interested in all interfaces, the tool's job is to bring up the
> > > interface...
> >
> > You want ``/usr/sbin/ip link show'', or ``ip l''
>
> mii-tool
>
> Doron

# cat /proc/net/dev | grep eth | cut -b 3-6
eth0
eth1

I think that does to job. Question is, how do I know their strings?

BTW, Thanks for every one :)

>
>
> ================================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]

-- 
Regards,
Itay 'z9u2K' Duvdevani, GNU/Linux Kinneret.
Public GPG Key: ftp://ftp.berlios.de/pub/kinneret/z9u2k.asc


================================================================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]

Reply via email to