lyhzzz 2 years ago
parent
commit
88c88aee3f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/main/java/com/fdkankan/fusion/common/util/ShellUtil.java

+ 0 - 1
src/main/java/com/fdkankan/fusion/common/util/ShellUtil.java

@@ -31,7 +31,6 @@ public class ShellUtil {
             // 执行命令, 返回一个子进程对象(命令在子进程中执行)
             log.info("执行cmd:{}",cmd);
             process = Runtime.getRuntime().exec(cmd);
-            Thread.sleep(100 * 1000 );
             // 获取命令执行结果, 有两个结果: 正常的输出 和 错误的输出(PS: 子进程的输出就是主进程的输入)
             //处理InputStream的线程
             threadRun(process);