getting the output from os.system()
William Park
parkw at better.net
Sun May 13 15:36:13 EDT 2001
On Sun, May 13, 2001 at 09:15:39PM +0200, José María y Sagrario wrote:
> Hi everyone,
>
> When I execute something using os.system(), I cant get the output that is
> produces into a variable, it just goes to the standar output, the screen.
>
> What I am actually trying to do is making a python script to execute another
> one, and getting the output that it produces... Exactly, the error mesages
> that python generates when something goes wrong...
Read docs on popen(), popen2(), popen3(), ... I forget whether they're
under 'os' or 'popen2' module.
--William Park, Open Geometry Consulting, Mississauga, Ontario, Canada.
8 CPU cluster, (Slackware) Linux, Python, LaTeX, vim, mutt
More information about the Python-list
mailing list