Python Forum

Full Version: example of multiprocess piping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm looking for example code that can run two or more subprocesses that each periodically output data at different random times over separate pipes with the parent process (without threads) reading them as they are output, and knowing which pipe they are coming from, or doing something similar enough to derive this kind of thing.

any suggestions such as search terms to get this kind of thing out of google?
What's the name of your book?
This sounds like something you might find in the python cookbook,
programming python, or perhaps https://pymotw.com/3/
well, i hope it is at that website. i have a hard time reading physical books and other things that size such as kindles and notebooks. a laptop works fine for reading. mine runs ubuntu linux.
Yea,

I wish O'Reilly would break the Lutz books into two volumes each.
Tim Oreilly, authored at least one, and got his start as a publisher from the set of X
books back in the 1980's they were big and fat, broken into volumes, but still too fat

The PYMOTW is one of my favorite sites, not a book and well indexed. Maintained by
Doug Hellmann author of 'The Python Standard Library by Example' (totally worth buying).
There are two sites, one for Python 2.7 for the diehards, and another for Python 3.