On Apr 2, 2:52 pm, "danmcle...@yahoo.com" <danmcle...@yahoo.com> wrote: > On Apr 2, 2:14 pm, Booter <colo.av...@gmail.com> wrote: > > > Hello all, > > > I am new to python ans was wondering if there was a way to get the mac > > address from the local NIC? > > > Thanks for your help. > > > Gerad > > for windows parse p.stdout.read(): > > import subprocess > > p = subprocess.Popen('ipconfig', shell = True, stdout = > subprocess.PIPE) > > p.wait() > > print p.stdout.read()
try this instead: import subprocess p = subprocess.Popen('ipconfig /all', shell = True, stdout = subprocess.PIPE) p.wait() print p.stdout.read() -- http://mail.python.org/mailman/listinfo/python-list