Re: subprocess wait() waits forever, but os.system returns

2008-05-07 Thread grayaii
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() -

subprocess wait() waits forever, but os.system returns

2008-05-07 Thread grayaii
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,