Joey K Tuttle wrote:
The question of empty STDIN is an interesting one. I have made comments about that over the years, and the current j distributions have a small addition to jmf that lets a j script determine if it is running in a shell and then read STDIN (which comes as a single buffer, with some size limit). I have not bothered to try to make a read stdin loop, e.g. my file upload example. I'm happy to share more scripts if that is any help to folks.
I guess stdin loop does not work for J for shell script because there is no message loop to feed the stdin. I test J601/windows will cause stdin overflow at about 67MB with the following script
NB. test stdin overflow 3 : 0 '' try. 1!:2&2 # 1!:1[3 catch. 1!:2&2 [ 13!:12'' end. 2!:55[0 ) But it seems have trouble with binary data as others previously reported. Your elaboration of CGI guide in jwiki will be most welcome. -- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
