A question about ARBIN
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
3 posts
• Page 1 of 1
A question about ARBIN
I wish to use ⎕ARBIN to read from a "FIFO" (named pipe) on the Raspberry Pi.
Within the "Arbitrary Input" documentation, under "input" it states:
Given a FIFO named "/home/pi/myfifo", how exactly would I associate it within the command line I use to start Dyalog APL?
Within the "Arbitrary Input" documentation, under "input" it states:
input
This is a simple numeric scalar that specifies the input device.
If it is positive or zero, it represents a file descriptor that must have been associated by the command that started Dyalog APL.
If it is negative, it represents the tie number of a file opened by ⎕NTIE or ⎕NCREATE.
Given a FIFO named "/home/pi/myfifo", how exactly would I associate it within the command line I use to start Dyalog APL?
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
Re: A question about ARBIN
Hi Ray
Try
Try
ntn←'/home/pi/myfifo' ⎕ntie 0
⍬ ntn ⎕arbin''
-
AndyS|Dyalog - Posts: 257
- Joined: Tue May 12, 2009 6:06 pm
Re: A question about ARBIN
Hi Andy,
Thanks for your reply.
I am already using ⎕NTIE as in
But I was more interested in the
Thanks anyway.
Thanks for your reply.
I am already using ⎕NTIE as in
- Code: Select all
tie←fifo ⎕NTIE 0
....
((10+0 128)tie)⎕ARBIN ⍬
But I was more interested in the
aspect, having never use a FIFO before and wanted to experiment.If it is positive or zero, it represents a file descriptor that must have been associated by the command that started Dyalog APL
Thanks anyway.
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group