[Python-ideas] Adding a subprocess.CompletedProcess class (original) (raw)
Gregory P. Smith greg at krypto.org
Mon Feb 2 17:00:41 CET 2015
- Previous message: [Python-ideas] Adding a subprocess.CompletedProcess class
- Next message: [Python-ideas] Adding a subprocess.CompletedProcess class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at gmail.com> wrote:
On 2 February 2015 at 01:50, Wes Turner <wes.turner at 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 at python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150202/dfb00045/attachment.html>
- Previous message: [Python-ideas] Adding a subprocess.CompletedProcess class
- Next message: [Python-ideas] Adding a subprocess.CompletedProcess class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]