[Baypiggies] Help with starting new processes

Shannon -jj Behrens jjinux at gmail.com
Sat Aug 23 04:35:54 CEST 2014


Time to crack open the code for the two modules so that you can mix and
match. It's all UNIX APIs at some point ;)
On Aug 22, 2014 2:59 PM, "Tony Cappellini" <cappy2112 at gmail.com> wrote:

>
> I'm running Python 2.7.6 on Windows7. (Python 3 isn't an option at the
> moment)
>
> 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
> 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 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?
>
>
>
> Thanks
>
>
>
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20140822/3fe80d62/attachment.html>


More information about the Baypiggies mailing list