-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support for interactive programs #14
Comments
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... |
It does not work for me as well in ssh scenario. |
@akwangho I have the same issue, did you find any solution? Related: http://stackoverflow.com/questions/24750131/node-js-wait-function-in-nexpect-module-does-not-working |
I ended up rolling my own package to solve this problem. https://github.com/MarcDiethelm/superspawn |
Thanks. Does your package provide something similar to |
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. |
you're right :) |
This allows nexpect to work with conditional branching. It will emit 'wait' right now, and the data will be the line of output which matches the expected output. From there, you can re-test the data and call sendline, expect, or wait again. Note that the user MUST call wait BEFORE the end of the stackframe on which the child was spawned.
This allows nexpect to work with conditional branching. It will emit 'wait' right now, and the data will be the line of output which matches the expected output. From there, you can re-test the data and call sendline, expect, or wait again. Note that the user MUST call wait BEFORE the end of the stackframe on which the child was spawned.
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.
The text was updated successfully, but these errors were encountered: