Hi,
other then using [shell], is there a way to read from a named pipe / fifo in Linux?
I tried [textfile] and [msgfile] from zexy. Both fail to read from a pipe, [msgfile] with the error message:
pd: getbytes() failed -- out of memory
msgfile_read: could not reserve -1 bytes to read into
Writing to a pipe using [textfile] works nicely, by the way.
c
On 3/23/19 4:21 PM, Carlos Franke wrote:
Hi,
other then using [shell], is there a way to read from a named pipe / fifo in Linux?
I tried [textfile] and [msgfile] from zexy. Both fail to read from a pipe, [msgfile] with the error message:
pd: getbytes() failed -- out of memory msgfile_read: could not reserve -1 bytes to read into
the problem being, that pipes don't have a "size", and both textfile and msgfile attempt to read the entire file on startup.
anyhow, zexy also has [freadln] and [fwriteln] which should work ok.
gmads IOhannes
way to read from a named pipe / fifo in Linux?
[…]
anyhow, zexy also has [freadln] and [fwriteln] which should work ok.
Both make Pd freeze when trying to [open( a fifo. Steps to reproduce:
In terminal: mkfifo /tmp/testfifo
In Pd:
[open /tmp/testfifo cr( //comment: same without "cr" | [freadln]
result:
c