python multitask

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • catalinfest@gmail.com

    python multitask

    Hi !
    I want use many comands in same python script .
    I want to use openoffice and pyuno .
    I try this
    >>cmdoo="openof fice.org -accept='socket, host=localhost, port=2002;urp;' "
    >>subprocess.ca ll(cmdoo, shell=True)
    but i need to execute another comand and need to stop subprocess
    Thank you !
  • Gabriel Genellina

    #2
    Re: python multitask

    En Tue, 26 Aug 2008 11:50:04 -0300, catalinfest@gma il.com
    <catalinfest@gm ail.comescribiï ¿½:
    Hi !
    I want use many comands in same python script .
    I want to use openoffice and pyuno .
    I try this
    >>>cmdoo="openo ffice.org -accept='socket, host=localhost, port=2002;urp;' "
    >>>subprocess.c all(cmdoo, shell=True)
    but i need to execute another comand and need to stop subprocess
    Instead of subprocess.call , use subprocess.Pope n and later wait() for the
    processes to finish.

    --
    Gabriel Genellina

    Comment

    Working...