calling an external program and capturing the output

Xah Lee xahlee at gmail.com
Sun Jan 18 12:36:59 EST 2009


On Jan 18, 8:41 am, Eric <ericc... at gmail.com> wrote:
> 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:

• Making System Calls in Perl and Python
  http://xahlee.org/perl-python/system_calls.html

  Xah
∑ http://xahlee.org/


More information about the Python-list mailing list