python multitask
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Aug 27 00:30:56 EDT 2008
En Tue, 26 Aug 2008 11:50:04 -0300, catalinfest at gmail.com
<catalinfest at gmail.com> escribi�:
> Hi !
> I want use many comands in same python script .
> I want to use openoffice and pyuno .
> I try this
>>>> cmdoo="openoffice.org -accept='socket,host=localhost,port=2002;urp;'"
>>>> subprocess.call(cmdoo, shell=True)
> but i need to execute another comand and need to stop subprocess
Instead of subprocess.call, use subprocess.Popen and later wait() for the
processes to finish.
--
Gabriel Genellina
More information about the Python-list
mailing list