Skip to content

Add .SendData method for SshCommand #803

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

Closed
wants to merge 2 commits into from

Conversation

blenderfreaky
Copy link

See #802.

This adds two methods SshCommand.SendData that expose SshCommand._channel.SendDatas two overloads.

No tests yet, not quite sure how to test this.

@blenderfreaky
Copy link
Author

I've added a test using cat - to mirror the stdin back to stdout.
It currently uses a random to test bigger amounts of random data, I'm not sure if this is optimal. Suggestions are welcome

@Rob-Hague
Copy link
Collaborator

Closing since a similar change was done in #1293. Thanks

@Rob-Hague Rob-Hague closed this May 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants