【expectit interact】 Eof Connection Timeout is also not turned off

12 views
Skip to first unread message

南迷

unread,
Sep 10, 2021, 7:29:44 AM9/10/21
to Yet another Expect for Java
I'm using [interact] for SSH interaction, but the EOF timed out and it didn't complete


expect.interact()
// 打包目录不存在创建打包目录
.when(contains("不存在")).then(a -> {
expect.sendLine("mkdir " + storage).expect(eof());
System.out.println("---");
}).until(eof());
Reply all
Reply to author
Forward
0 new messages