Getting the result of a process after exec*()

Miles semanticist at gmail.com
Fri Aug 17 11:53:07 EDT 2007


On 8/17/07, AndrewTK <atkedzierski at gmail.com> wrote:
> The problem for me is this: once an external process is called via
> exec*() the script has effectively fulfilled its task. Is there any
> way one can process a file with an external process and continue
> further processing in Python; /once the external processing is
> completed/?

Assuming you're looking at the docs for the os module, instead of the
exec*() functions, check out the spawn*() functions, or, to use a
subshell, system().  Better yet, take a look at the subprocess module:
http://docs.python.org/lib/module-subprocess.html

-Miles



More information about the Python-list mailing list