processes

Daniel Dittmar daniel.dittmar at sap.com
Thu Jun 24 12:43:38 EDT 2004


hyperbob wrote:
> I have a simple little problem. I am writing a program that consists
> of several distinct processes (GUI, database, etc.). I ran into
> problems trying to make them all run in parallel and independently. I
> wanted to write a script that will get them all up and running, but it
> does not seem to be possible without either killing the parent process
> or depriving the child processes of a console window. This is
> essentialy what I want:
>
> scripts = ["monitor.py", "server.py", "test2.py"]
> for script in scripts:
>     run_and_forget_about_it("python.exe " + script)
>
> Anyone knows who to implement run_and_forget_about_it?

Try os.system ('cmd.exe /c start python.exe ' + script)
This should create a new console window.

Daniel





More information about the Python-list mailing list