int128 / gradle-ssh-plugin

Gradle SSH Plugin

Home Page:https://gradle-ssh-plugin.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

more documentation on interaction

coutliuxing opened this issue · comments

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.

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