Answers for "golang execute bash command"

Go
0

golang execute bash command

res := exec.Command("echo", "hello wordl")
stdin, _ := res.CombinedOutput()
fmt.Println(string(stdin))
Posted by: Guest on October-10-2021

Code answers related to "golang execute bash command"

Browse Popular Code Answers by Language