At Thursday 5/10/2006 09:33, utabintarbo wrote:
># gives back return code, but does not run asynchronously
>retcode = subprocess.call([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
></code>
>>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!
http://www.yahoo.com.ar/respuestas