"Ron Johnson, Jr." wrote:
> 
> Sarang Lakare wrote:
> >
> > >
> > > grep IP /etc/sysconfig/network-scripts/ifcfg-eth0
> >
> > This i thought was the best of all the solutions!.. it gives a bad output
> > though which i'll have to filter out somehow..
> >
> > btw, I want to know the IP as a user.. so cant' run ifconfig..
> >
> > This, I think is the bottleneck of linux and _has_ to be improved.. Why
> > shldn't a user know his own IP address?? why does he have to be root to do
> > that!! its rediculous!..
> >
> > -sarang
> 
> Users don't have IP addresses: devices do...

I know that.. my "their" i meant their machine's ;)

> As a non-root user, this works grandly, and is SIMPLE:
> $/sbin/ifconfig | grep "inet addr:"

users can't execute files in /sbin if you know

-sarang

> 
> Ron
> --
> +----------------------------------------------------------+
> | Ron Johnson, Jr.        Home: [EMAIL PROTECTED]       |
> | Jefferson, LA  USA      WWW : [EMAIL PROTECTED]     |
> |                                                          |
> | Most overused words: feel, cool/kewl, fun, myBlah.com    |
> | Most underused word: think                               |
> +----------------------------------------------------------+

Reply via email to