But, in addition to J's built in primitives, you can use code in "dlls" (*.so files, on Linux).
See, for example: https://code.jsoftware.com/wiki/Guides/DLLs/Calling_DLLs Thus, for example, you could use libc's fread if you wanted. -- Raul On Fri, Jun 24, 2022 at 5:56 AM bill lam <bbill....@gmail.com> wrote: > > J built in primitives can only work with regular files. Those can be seek > to the end. If it is then you can use index read or map the file to a J > noun. See memory mapped file lab or documentation. > > On Fri, 24 Jun 2022 at 5:10 PM Pawel Jakubas <jakubas.pa...@gmail.com> > wrote: > > > Dear J enthusiasts, > > > > What is your recommended way to call linux command/invoke program from J > > and > > capture result? Let's say I want to invoke > > *dd if=/dev/urandom bs=100 count=1* > > > > Could you point me to example showing how to deal with bigger streams in J, > > ie. process the source by chunks. > > > > Thanks a lot in advance and cheers, > > Pawel > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm