Calling Exe from Python
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Wed May 2 07:27:27 EDT 2007
In <1178102899.910368.114140 at n76g2000hsh.googlegroups.com>, M Abbas wrote:
> This is what i am required to do.
> Call an executable from my python script, and when the executable is
> fininshed running, i should continue with my python script.
>
> I have tried "os.exec()" but it calls the executable and never returns
> to the calling python script.
> I tried "os.fork" it will start an independent process,
> since logic of my program depends on the results of executable.
Take a look at `os.system()` or the `subprocess` module.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list