3 ms·
Go script: p := Exec("man bogus") p.SetError(nil) output, err := p.String() fmt.Println(output) Shell script: man bogus ......I'm gonna stick with
by 0xbadcafebee 5y ago
Go script:
p := Exec("man bogus")
p.SetError(nil)
output, err := p.String()
fmt.Println(output)
Shell script:
man bogus
......I'm gonna stick with shell scripts.