Asychronous execution *with* return codes?

Gabriel Genellina gagsl-py at
Thu Oct 5 20:25:47 CEST 2006

At Thursday 5/10/2006 09:33, utabintarbo wrote:

># gives back return code, but does not run asynchronously
>retcode =[app, lstArgs])
>retcode = subprocess.Popen([app] + lstArgs).wait()
># runs the app async, but only returns the pid (no return code)
>pid = subprocess.Popen([app] + lstArgs).pid
>Is there some magic elixir which will get me both?

Use the async way, and then, os.waitpid()

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

More information about the Python-list mailing list