os.system and subprocess odd behavior

Hans Mulder hansmu at xs4all.nl
Tue Dec 18 11:27:50 CET 2012


On 18/12/12 06:10:43, photonymous at gmail.com wrote:
> 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. 

Why would that be a problem?

-- HansM




More information about the Python-list mailing list