Say I have a named pipe:
mypipe="foobar"
mkfifo $mypipe
... later on say I want to write to it
echo "foo" > $mypipe
if nobody is listening, I am pretty certain this echo call just hangs. Is there a way to determine if anyone is reading from the pipe before I make the echo call?