subprocess to pipe through several processes?

rdmurray at bitdance.com rdmurray at bitdance.com
Sun Dec 14 05:46:51 EST 2008


On Sat, 13 Dec 2008 at 23:05, Neal Becker wrote:
> How would I use suprocess to do the equivalent of:
>
> cat - | program_a | program_b

Have you tried extending the pipe example from the manual?

http://docs.python.org/library/subprocess.html#replacing-shell-pipeline

--David



More information about the Python-list mailing list