calling an external program and capturing the output

Diez B. Roggisch deets at nospam.web.de
Sun Jan 18 11:49:06 EST 2009


Eric schrieb:
> Coming from a perl background I'm new to the Python world.  I need to
> read a list of values, send each value to an external program and
> capture and act on the output of that program. Reading and parsing the
> initial values is not a problem but I can't seem to find anything on
> the sending to and capturing from an external program.
> 
> Any suggestions would be greatly appreciated.

See the module subprocess.

Diez



More information about the Python-list mailing list