os.system and subprocess odd behavior

photonymous at gmail.com photonymous at gmail.com
Tue Dec 18 00:10:43 EST 2012


I hope I understand the question... but shouldn't you wait for the process to complete before exiting?

Something like:

pid = subprocess.Popen(...)
pid.wait()

Otherwise, it'll exit before the background process is done. 



More information about the Python-list mailing list