Hello, I'm running Python 2.7.6 on 32-Bit Windows7 Pro. (Python 3 isn't an option at the moment)
I have a parent python script which spawns two subprocesses- where each subprocess 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. (Oddly enough, CREATE_NEW_CONSOLE is a Windows-specific flag.) 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 http://pastebin.com/mNNCH1vY 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 work until the queue is empty, and then wait until it is no longer 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 multiprocessing module. Multiprocessing makes it quite easy to pass a queue to the subprocesses. I've spent a lot of time with the documentation for both modules, but they are of no help for this particular issue. Is there a happy medium between these two modules that will help me get what I want? Thanks Tony
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32