-
Notifications
You must be signed in to change notification settings - Fork 79
Description
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