linux下用java调用shell脚本

/** * 执行shell脚本命令 * @param file */ public static void doExec(String file) { try { Runtime.getRuntime().exec("bash " + file); logger.info("bash " + file); } catch (IOException e) { logger.warn("Exec "
相关文章
相关标签/搜索