Read from Linux named pipe - Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    Linux Pipe
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
Swamp Thing
Insights Author
Messages
1,062
Reaction score
819
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:
on Phys.org
Reply
  • Informative
Likes   Reactions: Swamp Thing
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.