Browse Source

修改路径

master
xyiege 5 months ago
parent
commit
2d69c8be38
  1. 2
      scagent/core/FileRpc.go

2
scagent/core/FileRpc.go

@ -93,7 +93,7 @@ func clientUploadFile(remote string, filePath string, uploadPath string) {
// 调用外部组件scalib 程序执行 // 调用外部组件scalib 程序执行
// ./scalib -h 192.168.66.92:9098 -f /www/gfs/sync_zips/BIU_20251009_153640.zip -u /www/afs/logs/ // ./scalib -h 192.168.66.92:9098 -f /www/gfs/sync_zips/BIU_20251009_153640.zip -u /www/afs/logs/
// 执行命令 // 执行命令
cmd := fmt.Sprintf("./scalib -h %s -f %s -u %s", remote, filePath, uploadPath) cmd := fmt.Sprintf("scalib -h %s -f %s -u %s", remote, filePath, uploadPath)
fmt.Printf("cmd: %s\n", cmd) fmt.Printf("cmd: %s\n", cmd)
// 执行系统命令 // 执行系统命令
err := exec.Command(cmd).Run() err := exec.Command(cmd).Run()

Loading…
Cancel
Save