Naresh on Tue, 24 Dec 2002 00:10:35 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] proc filesystem


How can I obtain my ipaddress from the proc filesystem. I was thinking of
doing it like that:

cat /proc/net/arp | awk '{print $1}'

which works on my computer, but not on most.

TIA
Naresh
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug