Package com.vst.webapp.util

Examples of com.vst.webapp.util.OSCmdRunner


      if (scriptName == null || scriptName.length() == 0) {
        return new ModelAndView("textAnswer", "text",
            "Sorry script name not setting.");
      }

      OSCmdRunner runner = new OSCmdRunner();
      runner.setWorkDir(workDir);
      runner.setScriptName(scriptName);
      int resCode = runner.execOsScript();
      String answerText = "Script " + scriptName
          + " processed. Result code: " + resCode + ".";
      return new ModelAndView("textAnswer", "text", answerText);
    } catch (Exception e) {
      return new ModelAndView("textAnswer", "text", e.getMessage());
View Full Code Here

TOP

Related Classes of com.vst.webapp.util.OSCmdRunner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.