I have created a named pipe
mkfifo ~/mypipe
and I write to it
echo "hello world" > ~/mypipe
and read from it
$ cat ~/mypipe
hello world
I have to retype cat ~/mypipe
every time that I want to read it because it quits immediately. How do I keep reading from the pipe (and print to stdout
) without manually running cat
every time?