D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Perl NIC subroutine?



John Horne wrote:

No, that works by using the /etc/hosts or dns. I want something that in
effect looks at 'ifconfig' and says 'lo = 127.0.0.1', 'eth0 = 10.1.2.3',
etc, etc.






Why not just use ifconfig and strip the info you want from its output?


Pete

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly