Browse Source

增加本地命令模式

master
liuchen 9 months ago
parent
commit
d1baf84ed3
  1. 2
      src/main/java/com/win/qad/controller/CommandController.java

2
src/main/java/com/win/qad/controller/CommandController.java

@ -119,7 +119,7 @@ public class CommandController {
result = CommandUtil.execute("touch /home/mfg/work/cim/po/"+traceid+".p && echo '"+pJson+"'>/home/mfg/work/cim/po/"+traceid+".p"); result = CommandUtil.execute("touch /home/mfg/work/cim/po/"+traceid+".p && echo '"+pJson+"'>/home/mfg/work/cim/po/"+traceid+".p");
log.info("write p result : " + result); log.info("write p result : " + result);
//执行QAD脚本 //执行QAD脚本
result = CommandUtil.execute("/home/mfg/work/scripts/client-ch-cimload /home/mfg/work/cim/po/"+traceid+".p"); result = CommandUtil.execute("sh /home/mfg/work/scripts/client-ch-cimload /home/mfg/work/cim/po/"+traceid+".p");
log.info("execute client-ch-loaddata : " + result); log.info("execute client-ch-loaddata : " + result);
result = CommandUtil.execute("cat /home/mfg/work/out/po/" + traceid + ".run.out.json"); result = CommandUtil.execute("cat /home/mfg/work/out/po/" + traceid + ".run.out.json");
log.info("cat execute log : " + result); log.info("cat execute log : " + result);

Loading…
Cancel
Save