Trap SIGPIPE when trying to write without reader
- by Matt
I am trying to implement a named-pipe communication solution in BASH between two processes.
The first process runs a script which echo something in a named-pipe:
send(){
echo 'something' > $NAMEDPIPE
}
And the second script is supposed to read the named-pipe via another script which contains:
while true;do
if read line <…