Dossy Shiobara wrote:
On 2007.09.05, Jeff Rogers <[EMAIL PROTECTED]> wrote:
[...] if your inferior process waits for EOF before writing anything
then it will get stuck because there is no way to half-close the pipe.
If the inferior process writes as soon as it has data available then
it will likely work ok. (Incidentally, I asked about this exact same
issue about a week ago and got no response; I think it got lost in all
the debate about trac).
Perhaps it's time to introduce ns_exec, that yields read and write
Tcl_Channel's using pipe()?
Good idea? Bad idea? Something you'd like to see in the AOLserver 4.5
tree?
+1 (Ok, we aren't apache)
I'd rather see something in the tcl core, maybe an implementation in
aolserver would work as a proving ground.
Are you thinking of
lassign [ns_exec "somecommand"] read_fd write_fd
or
set result [ns_exec -binary "somecommand" << $input]
? I could see either having advantages in different situations.
-J
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.