Getting the output from a console command while it's been generated!

Raúl Gómez C. nachogomez at gmail.com
Sun Jan 28 21:54:03 EST 2007


I can't use the subprocess module because my app needs to be compatible with
Python 2.3 so, is there another approach to this problem???

Thanks!

On 1/26/07, Gabriel Genellina <gagsl-py at yahoo.com.ar> wrote:
>
> "Raúl Gómez C." <nachogomez at gmail.com> escribió en el mensaje
> news:684b0a740701261905o76ca3a9av6425b88cd1c3b9fc at mail.gmail.com...
>
> > I'm trying to make my apps more informative to the user, so I want to
> know
> > if its possible to get the output of the execution of a console command
> > while it's been generated, I mean, I want to get the output from
> > commands.getstatusoutput('CMD') while CMD it's been executed and not
> wait
> > until CMD have finished (because CMD take very long time to).
>
> Use the subprocess module and read line by line.
>
> --
> Gabriel Genellina
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070128/3663f8d5/attachment.html>


More information about the Python-list mailing list