Groups
Groups
Sign in
Groups
Groups
Yet another Expect for Java
Conversations
Labels
About
Send feedback
Help
【expectit interact】 Eof Connection Timeout is also not turned off
12 views
Skip to first unread message
南迷
unread,
Sep 10, 2021, 7:29:44 AM
9/10/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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