I need to continuously compress inputs that arrive from time to time
into one stream.

My idea was to create a named pipe, set a gzip reading from it, and then
Writing to it using cat, tee -a etc.
Basically like that:

mknod P p
gzip - < P > p.gz &

while something
do
        do-something | tee -a P
done

It does not work, since the gzip quits after first write to the pipe. I
guess it sees the write EOF.

I'm sure I'm missing something. If you have an idea, let me know.

Dan 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to