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

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