Dear All,
It seems like such a simple problem, yet I can't crack it: Has anyone managed to get OpenRead
to read from a simple Unix fifo pipe?
I do:
Run["mkfifo /tmp/test.fifo"]
which creates a pipe for me just fine. When I attempt to open it with
OpenRead["/tmp/test.fifo"]
Mathematica returns with:
OpenRead::noopen: "Cannot open "/tmp/test.fifo"
It does not matter if something writes to the pipe when the OpenRead
is executed.
It seems I can do something ugly as OpenRead["!cat /tmp/test.fifo"]
, but that misses the point, and as a bonus, it blocks the pipe and I can't write to the pipe.
Any ideas?
Thank you!
Pawel
PS I'm running Mathematica 10 on OSX 10.9.5.