-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Description
When running a command inside a Shell like this:
https://github.com/fabric8io/kansible/blob/master/winrm/winrm.go#L59-L71
var cmd *winrm.Command
cmd, err = shell.Execute(commandText)
if err != nil {
return fmt.Errorf("Impossible to create Command %s\n", err)
}
go io.Copy(cmd.Stdin, os.Stdin)
go io.Copy(os.Stdout, cmd.Stdout)
go io.Copy(os.Stderr, cmd.Stderr)
cmd.Wait()I didn't see a way to get the error from the command after the Wait()? I can get the ExitCode though I guess.
dpotapov and anurag5sh
Metadata
Metadata
Assignees
Labels
No labels