http://qs1969.pair.com?node_id=253069


in reply to Re: Re: Re: Cat multiple files into one pipe
in thread Cat multiple files into one pipe

I have a mixture of regular files and files that are gziped. I need to be able to pipe all of them to the program uncompressed. Using cat will not do that form. Unfortunately, unzipping them to the disk and then cat'ing them is not an option either.
  • Comment on Re: Re: Re: Re: Cat multiple files into one pipe

Replies are listed 'Best First'.
Re^5: Cat multiple files into one pipe (zcat)
by tye (Sage) on Apr 25, 2003 at 15:01 UTC

    Isn't this what zcat is for?

    I don't see anything wrong with your code.

    If you kill the receiving program, SIGPIPE is the expected outcome. Is it exiting on its own? What makes you think it is no longer receiving data?

    The buffer size for pipes is quite small so Perl would quickly block if the receiving program stopped reading data (and even Perl's internal buffer is not that big).

                    - tye