int128 / gradle-ssh-plugin

Gradle SSH Plugin
https://gradle-ssh-plugin.github.io
Apache License 2.0
318 stars 60 forks source link

more documentation on interaction #333

Open coutliuxing opened 5 years ago

coutliuxing commented 5 years ago

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.

legoethals commented 4 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