469,916 Members | 2,432 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,916 developers. It's quick & easy.

processes

Hello,

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?

Thanks,

Bob.
Jul 18 '05 #1
1 1237
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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael Williams | last post: by
1 post views Thread by Markus Franz | last post: by
6 posts views Thread by Bob Swerdlow | last post: by
15 posts views Thread by Dirk Reske | last post: by
35 posts views Thread by Carl J. Van Arsdall | last post: by
6 posts views Thread by Tim Arnold | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.