Sorry for sending this without testing it myself.
So, if we do :
main_program | tee -a /dev/tty | log_reader_script &
Are there any advantages/disadvantages over :
$pipe = /tmp/xxx
log_reader_script < $pipe &
main_program | tee -a $pipe &
Another question related to pipes: Can two processes read from the same
named pipe ?
I experimented as follows.
First, I had given the command: log_reader_script < $pipe &
After some time, I gave the command: log_reader_script1 < $pipe &
It seemed to me that after giving the second command, log_reader_script
stopped reading from $pipe and log_reader_script1 started reading from
Is this expected, correct behaviour.
Thanks and regards,