-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Closing process stdin, stdout and stderr #23
Comments
Hello Niklas, You're right in that this is a feature that I've not implemented, simply because it's not come up before. The simplest solution I can think of is to expose |
Hi Michael, today I noticed that my above hack is not sufficient. I am not sure what would be best here, yet. For orientation I'll check how |
Somewhat related, I end up adding a shutdown_write method on the SshProcess object, that call either the shutdown_write method on channel. I agree with @niklasf about looking at subprocess.Popen for the behavior. |
I was trying hard to get a public key from wireguard until i found out that it needs stdin closed to operate, their syntax to do that with pipes is thus: So, yeah, 👍 for adding a close operation for std* |
Hi.
There seams to be no "official" way to close the standard input, output and error streams of a Spur process. A hack like
appears to work, but is there a better way or should there be some method to do that?
Best regards
Niklas
The text was updated successfully, but these errors were encountered: