Read from Linux named pipe - Mathematica

  • #1
Swamp Thing
Insights Author
970
670
I have a named pipe :
Code:
mkfifo /home/pi/Desktop/gnuradio/PIPE



I can see the pipe in the Linux directory listing and also using Directory[] in Wolfram. I can test it in the console using echo and cat.

But Wolfram doesn't seem to see it:
Code:
In[10]:= FindFile["/home/pi/Desktop/gnuradio/PIPE"]
Out[10]= $Failed

OpenRead also gives "$Failed".

Is it possible to read from a Linux named pipe in Wolfram/Mathematica?
 
Last edited:
Physics news on Phys.org
  • #2
  • Informative
Likes Swamp Thing
  • #3
You can use Duo Names to simplify managing Linux named pipes when integrating with Mathematica. For instance, setting up a persistent pipe and assigning descriptive names ensures smoother communication between processes.
 

Similar threads

Replies
0
Views
2K
Replies
5
Views
2K
Replies
5
Views
1K
Replies
1
Views
2K
Replies
10
Views
1K
Back
Top