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 "
相關文章
相關標籤/搜索