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

Cannot set inputStream to System.in #373

Open
vitphire opened this issue May 12, 2021 · 0 comments
Open

Cannot set inputStream to System.in #373

vitphire opened this issue May 12, 2021 · 0 comments

Comments

@vitphire
Copy link

vitphire commented May 12, 2021

Environment info

gradle-ssh-plugin-2.10.1 (groovy-ssh-2.10.1, jsch-0.1.54, groovy-2.5.4, java-11.0.10)

Steps to reproduce

  1. Create a gradle project with the task described below (remoteName can be any remote that works)
  2. Run it
  3. I't runs forever, instead of finishing immediately
task runWithInput {
    doLast {
        ssh.run {
            settings {
                inputStream = System.in
            }
            session(remotes.remoteName) {
                execute "echo blablabla"
            }
        }
    }
}

If there is any other way to forward terminal input to the remote, that is what I'm looking for.

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

1 participant