>At present, the only thing I can think of is to redirect the >output of 'ifconfig' into a temporary file, then read it back in and use >Python and regular expressions to try and extract the IP info from that.
That is basically how I do it. See here: http://mail.python.org/pipermail/python-list/2005-January/258883.html _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor