Please cjeck your errors! Esp. That returned by cmd.Start!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more opti
Thanks for your reply.
After read your message, this are my test.
cmd := exec.Command("mysqldump", args_mysqldump...)
r, w := io.Pipe()
z := zlib.NewWriter(w)
defer z.Close()
cmd.Stdout = z
cmd.Start()
upload
On Thu, 13 Oct 2016 10:43:24 -0700 (PDT)
Walter Garcia wrote:
> Im trying to test using zlib.
>
> In my test I need compress the Stdout from exec.Command to zlib and
> then send to io.reader to use in other service
>
> cmd := exec.Command("mysqldump", args...)
> ..
> cmd.StdoutPipe()
>
> z
What's the other end (the "other service") look like?
> On Oct 13, 2016, at 1:43 PM, Walter Garcia wrote:
>
> Hello all
> Im trying to test using zlib.
>
> In my test I need compress the Stdout from exec.Command to zlib and then send
> to io.reader to use in other service
>
> cmd := exec.Comm
Hello all
Im trying to test using zlib.
In my test I need compress the Stdout from exec.Command to zlib and then
send to io.reader to use in other service
cmd := exec.Command("mysqldump", args...)
..
cmd.StdoutPipe()
z := zlib.NewWriter( ... )
.
z -> to -> io.reader
Could you help me?