[issue34233] subprocess.check_output goes to infinte loop

2018-07-26 Thread Eryk Sun
Eryk Sun added the comment: `cmd.exe dir` ignores the unrecognized `dir` argument and runs the interactive shell. The shell is waiting for input on stdin. You can type "exit" and press enter to return to Python. When you run this from IDLE (i.e. via pythonw.exe), there's no StandardInput

[issue34233] subprocess.check_output goes to infinte loop

2018-07-26 Thread sanjay patel
New submission from sanjay patel : Below snipped goes to infinite loop when running through windows command prompt but works in python IDLE import subprocess subprocess.check_output('cmd.exe dir', stderr=subprocess.STDOUT) save as:test.py in windows cmd use command: python test.py then it goe