[PD] read Linux fifos / named pipes

IOhannes m zmölnig zmoelnig at iem.at
Sat Mar 23 19:06:57 CET 2019

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190323/1a0beacf/attachment.sig>

More information about the Pd-list mailing list