Skip to content

Support for interactive programs #14

Description

@MarcDiethelm

Unfortunately nexpect seems to be incompatible with interactive cli programs that require user input, e.g. Yeoman. (sendline is not an option here, as I don't know what choices the user will make).

Could this possibly be implemented with Readline?
Also: somewhat relevant SO.

Activity

  1. julianlam commented on Jun 4, 2014

    @julianlam

    Isn't this the entire point of the expect (and by extension, nexpect) program, to run scripts that expect user input, and provide it on demand?

    Ironically, the only reason why I'm here is because I can't get my nexpect script to execute against an interactive program...

  2. akwangho commented on Sep 23, 2014

    @akwangho

    It does not work for me as well in ssh scenario.
    The "Password:" prompt can't use consumed after the struggle for several hours.

  3. boustanihani commented on Mar 26, 2015

    @boustanihani
  4. MarcDiethelm commented on Mar 26, 2015

    @MarcDiethelm
    Author

    I ended up rolling my own package to solve this problem. https://github.com/MarcDiethelm/superspawn
    Works nicely for me.

  5. boustanihani commented on Mar 26, 2015

    @boustanihani

    Thanks.

    Does your package provide something similar to wait() ?
    https://github.com/nodejitsu/nexpect#function-wait-expectation-callback

  6. MarcDiethelm commented on Mar 26, 2015

    @MarcDiethelm
    Author

    Let's not spam this issue with questions concerning a foreign module. If you don't mind please open an issue in my project and we can discuss it there.

  7. boustanihani commented on Mar 26, 2015

    @boustanihani

    you're right :)

  8. added 2 commits that reference this issue on May 4, 2015
    50b74bd
    7063f8a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions