
9 May
2003
9 May
'03
8:33 a.m.
One thing I'd like to see would be a version that accepts a string as the standard input, and perhaps gives a lazy string as the standard output. At least in its current incarnation, I don't see how this can trivially be implemented on top of launch, since it would generally fail on input strings longer than 4k in length due to buffering issues, as the write of the string will block when the buffer is full.
Just fork a thread to write to the input pipe. Looking at the implementation of POpen.popen, it appears that it could do exactly that. Cheers, Simon