public static int executeCommand ( final Logger logger , final List < String > command , final File workingDir , final Map < String , String > environmentVars , final String applicationName , final String scopedInstanceName ) throws IOException , InterruptedException { return executeCommand ( logger , command . toArray ( new String [ 0 ] ) , workingDir , environmentVars , applicationName , scopedInstanceName ) ; }
Executes a command on the VM and prints on the console its output .