-
-
Notifications
You must be signed in to change notification settings - Fork 947
Return matched group in ShellStream.Expect #833
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
Comments
I have created a discussion #926 for all ShellStream related issues. |
@nn I'm trying to better understand usage patterns related to Expect API. Can you please explain how you use it and if possible provide a proto code for it? |
The API reads the data and tries to If you talk generally about the API, it would be better to have a Stream abstraction over SSH, then such code could be implemented for any stream. |
Yes, I know what the Expect API is supposed to do. :) |
One of usages is to wait for password prompt when |
So in this case you would be Expecting |
Yes, this is the idea. |
In general any command requiring input needs to wait for the prompt and only then put the text. |
@IgorMilavec @WojciechNagorski Although the conversation is unclear, I believe this was also fixed by #1207 and #1319. |
Currently it returns the strings which requires me to call Regex.Match second time.
The text was updated successfully, but these errors were encountered: