//定时清空 日志
            String shellString = "sh /home/jyapp/delete_log.sh";
            Process process = Runtime.getRuntime().exec(shellString);
            int exitValue = process.waitFor();
            if (0 != exitValue) {
                logger.error("call shell failed. error code is :" + exitValue);
            }

 

相关文章:

  • 2021-12-04
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2018-08-18
相关资源
相似解决方案