@Override public void execute() throws Exception { final PrintWriter err = getError().getPrintWriter(); final File file = argFile.getValue(); Shell shell = null; try { shell = ShellUtils.getShellManager().getCurrentShell(); } catch (NameNotFoundException e) { e.printStackTrace(err); exit(2); } if (shell == null) { err.println(err_null); exit(2); } String[] args = argArgs.getValues(); int rc = shell.runCommandFile(file, null, args); if (rc != 0) { exit(rc); } }