Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.santaba.agent.groovyapi.expect.expectj.*;
- def host = hostProps.get("system.hostname");
- def user = hostProps.get("ovm.user");
- def pass = hostProps.get("ovm.pass");
- def port = 10000;
- def cli = null;
- try
- {
- def factory = new ExpectJ(10);
- cli = factory.spawn(host, port, user, pass);
- cli.expect("OVM> ");
- }
- catch(e)
- {
- println e;
- }
- return 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement