/** * Execute a command using the default shell and clear the shell events before returning. * * @param command * Command to execute * @return The result of the command execution */ protected CommandResult executeCommand(String command) { assert(command != null); return executeCommand(getDefaultShell(), command); }
executeCommand(shell, "exit");
CommandResult result = executeCommand(shell, command.toString());