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

not able to read the output in case of some CLI console responses #36

Open
muly opened this issue Sep 24, 2020 · 0 comments
Open

not able to read the output in case of some CLI console responses #36

muly opened this issue Sep 24, 2020 · 0 comments

Comments

@muly
Copy link

muly commented Sep 24, 2020

this gexpect package worked better than the google and netflix ones. but I have one challenge.

I'm trying to capture the response from the automation that I'm trying to do using this package.. my script has ssh commands, and then runs a cli command which has its sub prompt. I'm able to grab all the screen text, using the Capture() and Collect() functions, except after reaching CLI's prompt.

However, when I use Interact() at the end of the script, and remove the Capture() and Collect() calls, then I'm able to see the text from the cli console. So, the gexpect is able to read the screen text from the CLI console, but i'm not able to grab them using the Capture() and Collect() functions. any suggestion on how to resolve this blocker?

Please let me know if you need any more details.

env: mac mojave

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