Using the wait function, you can execute SSH commands and analyze the output of these commands to change the program flow. I would like to do this using Java. That is, I want my Java application to start an SSH session, execute a command on a remote server, and depend on the output of this command executing the following command, without having to start a new SSH session.
Is this possible in Java?
thanks
jtnire
source share