|
@@ -17,7 +17,7 @@ import (
|
|
|
"hnyfkj.com.cn/rtu/linux/utils/ftpclient"
|
|
"hnyfkj.com.cn/rtu/linux/utils/ftpclient"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-// 执行系统Shell脚本 (同步)
|
|
|
|
|
|
|
+// 运行系统Shell命令 (同步)
|
|
|
func ExecShell(cmd string) error {
|
|
func ExecShell(cmd string) error {
|
|
|
command := exec.Command("sh", "-c", cmd)
|
|
command := exec.Command("sh", "-c", cmd)
|
|
|
command.Stdout = os.Stdout
|
|
command.Stdout = os.Stdout
|