Open coutliuxing opened 5 years ago
I would expect that setting the option pty: true
would be sufficient, but apparently it isn't:
ssh -t user@host java -jar /tmp/test.jar
works, and accepts user input as expected.
ssh.run {
session(remotes.host) {
execute("java -jar /tmp/test.jar", pty: true)
}
}
Shows the output of test.jar, but hangs on user input.
Using version 2.10.1, gradle version 5.4.1
hi~did you has more documentation on interaction?I want to send the input from the keyboard to the remote, but I don't know how to do it.