First I make a fifo
mkfifo a.fifo
Then I echo something to it
echo 1 > a.fifo
Open another terminal, and also add sth to it
echo 2 > a.fifo
Of course, the two are all blocked,then I read from the fifofile
read -n1 < a.fifo
All are released and I only got one and the other char is missing...
My question is why it happened and how can I get the content from fifo file one by one without losing data?
Thx