jcabi-ssh
jcabi-ssh copied to clipboard
How to send several commands one after the other
I understand how to create a ssh shell Shell ssh = new SshByPassword("192.168.1.5", 22, "admin", "password"); i also understand how to run a command String output = new Shell.Plain(ssh).exec("some command"); and i can easly analyze the output string
but how do i send in the same "shell" one command after the other
and bonus question sometimes the commands require a user confirmation ("press Y to continue")
is it possible with the library?
@yegor256/z please, pay attention to this issue
@unaor/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!
@unaor nope, it's not. This library is only for simple one-time commands. If you need a more complicated scenario, you JSch directly.
Job gh:jcabi/jcabi-ssh#87
is not assigned, can't get performer