[agent-go] [status] - start to unit

This commit is contained in:
zeaslity
2023-04-23 14:15:12 +08:00
parent 6b9487b9b2
commit c5143d2d59
8 changed files with 139 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import (
"os/exec"
)
func ReadTimeOutput(singleLineCommand []string) {
func ReadTimeCommandExecutor(singleLineCommand []string) {
cmd := exec.Command(singleLineCommand[0], singleLineCommand[1:]...)
stdout, err := cmd.StdoutPipe()