-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to stream binary data on stderr and stdout outputs #34
Comments
If such an API is added, it might be easy to also make it give you access to the stdin stream, so you can write things to stdin as you read them from stdout/stderr? Might make it more plausible to use for controlling an interactive command line process. |
@jrochkind Thanks for the suggestion! Agree that exposing writable stdin in a block would make total sense. For the time being, there is a way to have interactive input and redirection. |
I'm not sure having to pre-script the entirety of the stdin counts as 'interactive', but okay! |
The example demonstrates providing input in one fell swoop, but I think since you can provide IO-like object, you should be able to write to it when you need to, especially when the process is blocking. So based on the output from stdout/stderr in the block you could write whatever as input. |
As suggested by @janko-m, this library would benefit from ability to stream binary data chunk by chunk to stdout/stderr when available from the running process.
The text was updated successfully, but these errors were encountered: