Skip to content

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

@muly

Description

@muly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions