[issue1124861] subprocess fails on GetStdHandle in interactive GUI

2010-03-21 Thread bairam
bairam added the comment: I have tested this form in Python26 ,It works >>> import subprocess >>> p = subprocess.Popen("cmd.exe dir", stdout=subprocess.PIPE) >>> p.communicate() ('Microsoft Windows XP [Version 5.1.2600]\r\n(C) Copyright 1985-2001 Mi

[issue1124861] subprocess fails on GetStdHandle in interactive GUI

2010-03-21 Thread bairam
bairam 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 >