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

2016-10-14 Thread Walter Garcia
gram continue and finish without to do anything. I dont know where is my mistake. Well thanks in advance Regards El jueves, 13 de octubre de 2016, 15:20:22 (UTC-3), Konstantin Khomoutov escribió: > > On Thu, 13 Oct 2016 10:43:24 -0700 (PDT) > Walter Garcia <wal...@gmail.com

[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?

[go-nuts] Re: howto kill pipe process using gopkg.in/pipe.v2

2016-07-19 Thread Walter Garcia
> promising. > > On Monday, July 18, 2016 at 10:39:36 AM UTC-7, Walter Garcia wrote: >> >> Hello. >> >> Im using pipe.v2 and work fine, but I need cancel the process running, >> How can I do it? >> >> The process is running, but in certain circumstanc

[go-nuts] howto kill pipe process using gopkg.in/pipe.v2

2016-07-18 Thread Walter Garcia
Hello. Im using pipe.v2 and work fine, but I need cancel the process running, How can I do it? The process is running, but in certain circumstances I need to cancel. this is my code p := pipe.Line( pipe.Exec("command1", args_command1...), pipe.Exec("command2", args_command2...), )

[go-nuts] problem executing two command and second command

2016-07-14 Thread Walter Garcia
Hello. I have problems running 2 commands. When the second COMMAND2 fail this return os.Exit(2) but my program never finish. If I see the process using ps ax I can see COMMAND2 If I run this 2 programs in linux command line, this work fine, but doesnt work in go. Could you help me? please

[go-nuts] Re: SDK aws S3 Download to stdout

2016-06-30 Thread Walter Garcia
ct({ > Bucket: aws.String(bucket), > Key:aws.String(key), > }) > > if err != nil { > fmt.Fprintln(os.Stderr, err) > os.Exit(1) > } > > n, err := io.Copy(os.Stdout, result.Body) > result.Body.Close() > > > > On Wednesday, June 29, 2016 at 3:35:39 PM UTC-

[go-nuts] Re: SDK aws S3 Download to stdout

2016-06-30 Thread Walter Garcia
t.Fprintln(os.Stderr, err) >> os.Exit(1) >> } >> >> n, err := io.Copy(os.Stdout, result.Body) >> result.Body.Close() >> >> >> >> On Wednesday, June 29, 2016 at 3:35:39 PM UTC-7, Walter Garcia wrote: >>> >>> Hello all. >>> >>> Im n

[go-nuts] SDK aws S3 Download to stdout

2016-06-29 Thread Walter Garcia
Hello all. Im new using AWS SDK in go and Im need download file object from S3 to Stdout and not create a file. For example: my_download_s3_program > file.txt or my_download_s3_program | tar etc So, I can download to file, but I need stream on the fly to stdout, it's possible? This example