also set STDIN

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-22 13:41:59 -05:00
parent fab818b788
commit e6c1276e87
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func doCmd(str string) {
log.Println("doCmd()", str)
args := strings.Split(str, " ")
cmd := exec.Command(args[0], args[1:]...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = &stderr // os.Stderr
err := cmd.Run()