Original post

Hey r/golang community,

at the moment I face a problem where I want to write the output of `exec.Cmd` commands to multiple writers. For this problem I created a struct, `MultiplexedWriter`, which holds all writers where it writes to.

You can view a working example on my gist.github account:

I asked this question on StackOverflow and would appreciate every help or hint!


My assumption is that the problem is in the implementation of the `exec` package itself but I am not quiet sure…

Thanks in advance!