bash - pipe
- From: Antonio Macchi <antonio_macchi@xxxxxxxx>
- Date: Fri, 26 Sep 2008 09:32:56 +0200
hi
I can't understand this pipe-behavior..
------------------
$ mkfifo fifo
$ echo 123 > fifo &
[1] 7535
$ echo 456 > fifo &
[2] 7536
$ read -n3 < fifo
[1]- Done echo 123 >fifo
[2]+ Done echo 456 >fifo
$ read -n3 < fifo
(hang! - empty pipe)
--------------------
More than one process can append his output to a pipe
but...
Only one process can read a pipe
When he has fished, no more processes can read remaining-data
It seems illogical....
.
- Follow-Ups:
- Re: bash - pipe
- From: Lawrence D'Oliveiro
- Re: bash - pipe
- From: Jasen Betts
- Re: bash - pipe
- Prev by Date: Re: frugalware
- Next by Date: error:0906D06C when trying to remove password form certificate
- Previous by thread: frugalware
- Next by thread: Re: bash - pipe
- Index(es):
Relevant Pages
|