public static List<String> cmd(String command) throws IOException, InterruptedException {
        return cmd(command.split(" "));
    }
public static List < String > cmd ( String command ) throws IOException , InterruptedException { return cmd ( command . split ( " " ) ) ; }
Executes command, and waits for the expected phrase in console printout.

@param command command line

@return console output as a list of strings

@throws IOException          for command error
@throws InterruptedException when interrupted