|
@@ -10,9 +10,10 @@ public class CmdUtils {
|
|
|
|
|
|
|
|
|
/**
|
|
|
+ * 直接运行命令
|
|
|
* @param command
|
|
|
*/
|
|
|
- public static void callShell(String command){
|
|
|
+ public static void callCmd(String command){
|
|
|
log.info("cmd: {}", command);
|
|
|
try {
|
|
|
Process process = Runtime.getRuntime().exec(command);
|
|
@@ -46,9 +47,10 @@ public class CmdUtils {
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 运行xx.sh 脚本
|
|
|
* @param command 命令
|
|
|
* @param lineSize 日志输出行数 ,可以为null
|
|
|
+ *
|
|
|
*/
|
|
|
public static void callShLine(String command, Integer lineSize){
|
|
|
log.info("cmd: " + command);
|