-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I edit the example node.js like this:
var nexpect = require('../lib/nexpect');
nexpect.spawn("node")
.expect(">")
.sendline("console.log('testing')")
.expect("testing")
.sendline("process.exit()")
.run(function (err) {
if (!err) {
console.log("node process started, console logged, process exited");
}
else {
console.log(err);
}
});
but the output is nothong!
I don't understanding why use the "node --interactive" instead of "node" ?
and I want to know How to use the nexpect.spawn() method about python?
For example:
var nexpect = require('../lib/nexpect');
nexpect.spawn("python")
.expect("...")
...
Metadata
Metadata
Assignees
Labels
No labels