Is it possible to check from Java code whether a Linux server (websphere) is up or not?
I use the command below (from Java with
Runtime.getRuntime().exec) in order to open SSH session to my Websphere server. I want to run the
ServerStatus.sh script which is located under the
bin directory and return the indicator about the server status.
putty.exe -t -ssh userName@serverName -pw userPassword -P 22