Comments (7)
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...
from nexpect.
It does not work for me as well in ssh scenario.
The "Password:" prompt can't use consumed after the struggle for several hours.
from nexpect.
@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
from nexpect.
I ended up rolling my own package to solve this problem. https://github.com/MarcDiethelm/superspawn
Works nicely for me.
from nexpect.
Thanks.
Does your package provide something similar to wait()
?
https://github.com/nodejitsu/nexpect#function-wait-expectation-callback
from nexpect.
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.
from nexpect.
you're right :)
from nexpect.
Related Issues (16)
- nexpect - CLI hangs HOT 5
- The version in the public registry is out of date HOT 1
- Pulled from git, all tests fail. HOT 2
- Doesn't work with bash shells? HOT 5
- Regular expression not supported? HOT 1
- Difference between expect() and wait()? HOT 1
- run() got executed twice? HOT 2
- No color in child output
- Is there any OR possibility? HOT 1
- How to exit a program? HOT 3
- How to use the sendline() method?
- stdout / stderr should be made available to caller in case of error
- `wait` should accept an optional timeout
- Bug: Improper pathname parsing in `nspawn` function HOT 1
- Is it possible to run with Jest?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexpect.