Groups
Groups
Sign in
Groups
Groups
Yet another Expect for Java
Conversations
Labels
About
Send feedback
Help
Can I do tail with Expectit over SSH?
39 views
Skip to first unread message
Orion
unread,
Aug 6, 2019, 2:16:45 PM
8/6/19
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 example
https://github.com/Alexey1Gavrilov/ExpectIt#interacting-with-ssh-server
I want to do something like this:
while (true) {
System.out.println(expect.sendLine("tail -f /var/log/syslog").expect(contains("\n")).getBefore());
}
What's the best way to do this?
Many thanks for any type of answer.
Reply all
Reply to author
Forward
0 new messages