For the capture and forward of output you probably want to base a solution on https://docs.python.org/3/library/asyncio-subprocess.html these days rather than rolling your own poll + read + echo loop.
On Mon, Feb 2, 2015, 12:08 AM Paul Moore p.f.moore@gmail.com wrote:
On 2 February 2015 at 01:50, Wes Turner wes.turner@gmail.com wrote:
I'm not sure how that's relevant. Sure, if the child buffers output there's a delay in seeing it, but that's no more an issue than it would be for display on the console.
Ah. The link on that page that I was looking for was probably "Using Redirection" #using-redirection and/or " Capturing stdout and stderr from commands" #capturing-stdout-and-stderr-from-commands
Yes, but again the issue here isn't capturing stdout/stderr, but capturing them *while having them still displayed on the terminal*. Anyway, this is starting to hijack the thread, so I'll go and have a more detailed look at sarge to see if it does provide what I need somehow.
Thanks, Paul _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/