[Baypiggies] Help with starting new processes
cappy2112 at gmail.com
Fri Aug 22 23:57:20 CEST 2014
I'm running Python 2.7.6 on Windows7. (Python 3 isn't an option at the
I have a parent python script which spawns two subprocesses- where each
process is running
in a new console window. I want to watch each process running, this is why
I've explicitly used
creationflags=CREATE_NEW_CONSOLE in the subprocess.Popen() call.
The subprocesses are running a simple CLI program which are monitoring some
embedded devices being tested.
I don't want to use a GUI for them.
Here is the code for the parent script
Ideally, I'd like the parent script to pass some information via a queue,
to each subprocess.
The queues have nice functionality which would allow the receiving process
to wait until the queue is not empty,
I don't see a way to use pass a queue using the subprocess module,
nor do I see a way to create a new console using the multiprocess module.
multiprocess. makes it quite easy to pass a queue to the subprocess.
Is there a happy medium between these tow modules that will help me
get what I want?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies