Skip to content
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

Reopening stdinStream? #51

Open
hellerve opened this issue Dec 14, 2019 · 0 comments
Open

Reopening stdinStream? #51

hellerve opened this issue Dec 14, 2019 · 0 comments

Comments

@hellerve
Copy link

I’ve been trying to use OSSubprocess to interact with a REPL environment which requires me to write to the input stream, and read the result back, over and over again. I thus am not using the library for quick one-shot shell commands, but to interact with a background process

As has been pointed out in the README, I currently have to close the stdinStream for the content to be sent over, and reopening it doesn’t seem to attach it to the process (at least not using redirectStdin)—this is completely reasonable behaviour. Is there a way to reopen the pipe or continue reading/writing even after the first chunk? If not, is this something that could possibly be done? Or is this out of scope for the library? (And, if so, do you have any idea what library to use instead, though I understand that this is not your responsibility)

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant