This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bairam
Recipients astrand, atrusty, bairam, bethard, codecraig, davidschein, dserodio, grante
Date 2010-03-21.21:57:19
SpamBayes Score 3.531252e-05
Marked as misclassified No
Message-id <1269208641.29.0.186681788347.issue1124861@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-03-21 21:57:21bairamsetrecipients: + bairam, astrand, bethard, davidschein, codecraig, grante, dserodio, atrusty
2010-03-21 21:57:21bairamsetmessageid: <1269208641.29.0.186681788347.issue1124861@psf.upfronthosting.co.za>
2010-03-21 21:57:20bairamlinkissue1124861 messages
2010-03-21 21:57:19bairamcreate