You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have some use cases in which an expect-like syntax for interacting with the ssh server would be preferable.
In this approach, you send commands and expect the server to answer with a pattern.
I found this java implementation, and adapted it to the context of groovy-ssh; the result is in this branch of my forked repository. I did not alter any file of the original source, and put the new code in a different package, for the sake of readability.
This is a fragment of a unit test that explains the function:
Hi,
I have some use cases in which an expect-like syntax for interacting with the ssh server would be preferable.
In this approach, you send commands and expect the server to answer with a pattern.
I found this java implementation, and adapted it to the context of groovy-ssh; the result is in this branch of my forked repository. I did not alter any file of the original source, and put the new code in a different package, for the sake of readability.
This is a fragment of a unit test that explains the function:
If you think this could be useful, I can define a pull request, removing the custom package name.
The text was updated successfully, but these errors were encountered: