Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more documentation on interaction #333

Open
coutliuxing opened this issue Apr 16, 2019 · 1 comment
Open

more documentation on interaction #333

coutliuxing opened this issue Apr 16, 2019 · 1 comment

Comments

@coutliuxing
Copy link

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
Copy link

legoethals commented Aug 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants