Awesome! That worked!
And your comment just led me down another exploration path on why the
following doesn't work:
-
while(returncode is None):
returncode = run.poll()
time.sleep(1)
out = run.stdout.readlines()
err = run.stderr.readlines()
-
There are so many threads on this subject, but I ran across a
situation on Windows that I can't figure out.
I'm trying to run this little command-line exe and when I launch like
this, it hangs:
>>> import subprocess
>>> command = r'c:\mydir\foo.exe'
>>> run = subprocess.Popen(command, shell=True,