业务描述:
1.项目部署在A服务器,调用A服务器的shell脚本
Java代码:
```
<!--logger.debug("执行本地脚本:{},参数:{}", shellPath, param);-->
<!--shellPath:A服务器脚本路径-->
<!--param:执行脚本传的参数-->
try {
Process exec = Runtime.getRuntime().exec(shellPath, new String[]{param});
} catch (IOException e) {
881
0
0
1年前