From 8616b3b0c3d36de46b3b2bca0444b0ec2f897b38 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期三, 15 四月 2020 11:55:41 +0800 Subject: [PATCH] script test --- controllers/swfsControllers.go | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go index 61dea78..2c47473 100644 --- a/controllers/swfsControllers.go +++ b/controllers/swfsControllers.go @@ -214,6 +214,7 @@ //鑾峰彇鏌ユ壘鍐呭褰撳墠琛屽唴瀹� func GetNowLineContent(filePath string, searchContent string) string { scriptStr := "cat" + filePath + "| grep " + searchContent + fmt.Println("scriptStr: ", scriptStr) return strings.Split(util.RunScript(scriptStr), "\n")[0] } -- Gitblit v1.8.0