parent
fab818b788
commit
e6c1276e87
1
main.go
1
main.go
|
@ -31,6 +31,7 @@ func doCmd(str string) {
|
||||||
log.Println("doCmd()", str)
|
log.Println("doCmd()", str)
|
||||||
args := strings.Split(str, " ")
|
args := strings.Split(str, " ")
|
||||||
cmd := exec.Command(args[0], args[1:]...)
|
cmd := exec.Command(args[0], args[1:]...)
|
||||||
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = &stderr // os.Stderr
|
cmd.Stderr = &stderr // os.Stderr
|
||||||
err := cmd.Run()
|
err := cmd.Run()
|
||||||
|
|
Loading…
Reference in New Issue