updates to Exec()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
60671c1308
commit
621be7d20a
3
shell.go
3
shell.go
|
@ -259,6 +259,9 @@ func Exec(cmdline string) {
|
||||||
cmdArgs := strings.Fields(cmd)
|
cmdArgs := strings.Fields(cmd)
|
||||||
|
|
||||||
process := exec.Command(cmdArgs[0], cmdArgs[1:len(cmdArgs)]...)
|
process := exec.Command(cmdArgs[0], cmdArgs[1:len(cmdArgs)]...)
|
||||||
|
process.Stderr = os.Stderr
|
||||||
|
process.Stdin = os.Stdin
|
||||||
|
process.Stdout = os.Stdout
|
||||||
process.Start()
|
process.Start()
|
||||||
err := process.Wait()
|
err := process.Wait()
|
||||||
log.Println("shell.Exec() err =", err)
|
log.Println("shell.Exec() err =", err)
|
||||||
|
|
Loading…
Reference in New Issue