Forum Discussion
5 years ago
cli=Expect.open(host, user, pass);
sleep(10000)
println(cli.stdout())
cli.expect("#");
Results:
The script failed, elapsed time: 60 seconds - End of stream reached, no match found java.io.IOException: End of stream reached, no match found
-----------------------------
cli=Expect.open(host, user, pass);
cli.expect("#");
sleep(10000)
println(cli.stdout())
Results:
The script failed, elapsed time: 60 seconds - Timeout com.santaba.agent.groovyapi.expect.expectj.TimeoutException: Timeout
--------------------------
cli=Expect.open(host, user, pass);
println(cli.before())
cli.expect("#");
Results:
The script failed, elapsed time: 60 seconds - Timeout com.santaba.agent.groovyapi.expect.expectj.TimeoutException: Timeout
------------------------
cli=Expect.open(host, user, pass);
sleep(10000)
println(cli.before())
cli.expect("#");
Results:
The script failed, elapsed time: 60 seconds - End of stream reached, no match found java.io.IOException: End of stream reached, no match found
------------------
They all come back with the same error. Am I missing an import or something?
Related Content
- 2 months ago
- 2 years ago
- 2 years ago