18 Jan
2007
18 Jan
'07
2:12 a.m.
This bit assumes that en0 is the interface being used by the server. You actually want to check each interface used by each of the IP addresses in config.BindAddresses. Anyone know how to lookup a MAC address in python? This looks potentially promising, but I can't grok it and it didn't work on my machine: http://rafb.net/p/LcL3wR37.html Seems like this should be doable without forking... -wsv On Jan 17, 2007, at 8:27 AM, source_changes@macosforge.org wrote:
+ macaddr = os.popen('/sbin/ifconfig en0|grep ether').read().replace('\n','').split()[1]