Dan Bar Dov wrote:

Input process:

while something
do
        do-something
done | tee -a /tmp/my-fifo


The last pipe to tee is the problem. I can't do that. I need to send the input from several locations, and they do terminate.

I guess then you should use two fifo's:


## Zipper:

mkfifo /tmp/input-fifo
mkfifo /tmp/output-fifo
gzip - < /tmp/output-fifo > p.gz &

## Input process:

(while : ; do cat /tmp/input-fifo ; done) > /tmp/output-fifo &


Other processes can pipe data into the input-fifo.




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

Reply via email to