I'm trying to get the first MAC address from the ipconfig /all output. Unfortunately you can't just search for Physical Address because the name is only valid in the English Windows version.
Here a test which isn't working: import subprocess import re p = subprocess.Popen('ipconfig /all', shell = True, stdout =subprocess.PIPE) p.wait() rawtxt = p.stdout.read() print rawtxt p = re.findall(r'(%X%X-){5}%X%X',rawtxt) print p Any ideas? -- http://mail.python.org/mailman/listinfo/python-list