Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-15 Thread Tamás Gulácsi
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

Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-14 Thread Walter Garcia
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

Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-13 Thread Konstantin Khomoutov
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

Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-13 Thread Pietro Gagliardi
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

[go-nuts] stdout to zlib and then to io.reader service

2016-10-13 Thread Walter Garcia
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?