public boolean sendCommand ( String command ) { if ( writer != null ) { try { logger . info ( "Sending command " + command + " to remote host " + remoteHost ) ; writer . write ( command ) ; writer . write ( ' ' ) ; writer . flush ( ) ; } catch ( IOException e ) { logger . fatal ( "Error while sending command " + command + " to remote host " + remoteHost , e ) ; return false ; } return true ; } else { return false ; } }
Send the specified command to the remote host