for instance, this script read the whole stdin:

|#!/bin/jconsole stdout (1!:1) 3 |

but I need to read one byte at a time. I tried |1!:11| but it doesn't recognize |3| as stdin.

|(1!:11) 3;0 1 NB. file number error: script |

maybe the missing part is to find the fileno associated with the stdin of the running script's process itself and use the fileno in the |y| of |(1!:11)|.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to