I am trying to get the output of another script using Python subprocess.Popen as follows
process = Popen(command, stdout=PIPE, shell=True) exitcode = process.wait() output = process.stdout.read() # hangs here
It freezes in the third line only when I run it as a python script and I cannot play it in the python shell.
Another script prints just a few words, and I assume this is not a buffer problem.
Does anyone have an idea of ββwhat I'm doing wrong here?
source share