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

Handle streaming output #12

Closed
langston-barrett opened this issue Oct 13, 2015 · 1 comment
Closed

Handle streaming output #12

langston-barrett opened this issue Oct 13, 2015 · 1 comment

Comments

@langston-barrett
Copy link
Contributor

I'd like to execute a long-running command on a remote server and stream the input back to the host. Is this possible with the Golang crypto/ssh library, as far as you know? If so, could it be implemented here as an io.Reader, or some other form of async reader?

@langston-barrett
Copy link
Contributor Author

It looks like it is! I'll get to work on this.

I'm having some difficulties getting this to work, relevant question here. Will try more once I get a better handle on things!

I figured it out! I will have some function that returns output as it is ready in an io.Reader, another that returns it in a line scanner, and one that returns all input at once (Run).

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