bairam <bkom...@yahoo.com> added the comment: shell vs subprocess The problem is the default option "Shell" is "False" , you you write commands you should turn on the shell. for example try this to show the content of directory " C:\Python26 ": >>>import subprocess >>> p = subprocess.Popen("dir", shell=True,stdout=subprocess.PIPE, >>> stderr=subprocess.PIPE) >>> stdout,stderr=p.communicate() >>> print stderr # if errors doe not occur ,it is empty!
>>> print stdout ---------- versions: +Python 2.6 -Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1124861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com