Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possible to get the stdoutPipe? #14

Open
houle opened this issue May 19, 2016 · 2 comments
Open

It is possible to get the stdoutPipe? #14

houle opened this issue May 19, 2016 · 2 comments

Comments

@houle
Copy link

houle commented May 19, 2016

It is possible to get the stdoutPipe?
just as func (c *Cmd) StdoutPipe() (io.ReadCloser, error)
if so, we can get the output when we exec the commands

@codeskyblue
Copy link
Owner

not implemented. but you can try with that.

s = sh.Command("tailf", "some.log")
rd, wr := io.Pipe()
s.Stdout = wr
# wr is stdoutPipe should returns.

@codeskyblue
Copy link
Owner

BTW: you can make a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants