newb Q

Toy gee308 at mediaone.net
Fri Jul 21 21:27:45 EDT 2000


How can I make python issue the command, "ifconfig -a eth0", and then
parse the data to grab the IP?  I would think that you could tell Python
to look for the word, 'inet addr:"(is it different on different Unixes?)
and then tell it to get a number right after 'inet addr' that looks like
xx.x.xxx.xxx !!  Simple Q, but I'm new, thanks.




More information about the Python-list mailing list