[issue6107] Subprocess.Popen output fails on Windows

Amaury Forgeot d'Arc report at bugs.python.org
Tue May 26 09:22:27 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The following works for me:

>>> import subprocess
>>> p=subprocess.Popen('findstr "disk" c:\\boot.ini',
stdout=subprocess.PIPE)
>>> print p.communicate()[0]
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect /NoExecute=OptOut

Tested with python2.5 on Windows XP, and python2.6 on Windows 2000

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6107>
_______________________________________


More information about the Python-bugs-list mailing list