Executing external programs

Daniel Klein danielk at aracnet.com
Tue Mar 27 09:02:43 EST 2001


On Tue, 27 Mar 2001 21:13:28 +1000, "Ben" <bencr at bigpond.com> wrote:

>Hi,
>
>this appears to be a simple problem ... but i can not find any documentation
>on this ... could anyone point me to a rescource that would have an answer
>to this solution ...
>
>All I want to do is
>
> run program1.exe -args
>
> ... when program1.exe is finished
>
>run program2.exe -args ...
>
>run program3.exe -args
>
>etc etc
>
> ie the next process waits for the preceding processes exit code before
>starting ... if I can avoid the overhead of having the command shell open
>everytime I run an exe that would be good.

Methinks you should look at os.system().

Daniel Klein



More information about the Python-list mailing list