[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Thu, 2004-02-26 at 11:17, Peter Walker wrote:
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?
Could be tricky. This is to run on different systems (linux of various sorts, *bsd, solaris, etc), so the output may vary. John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: John.Horne@xxxxxxxxxxxxxx Fax: +44 (0)1752 233839 -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.