Re: [PHP] pcntl_fork and reading from childs stdout

2005-06-13 Thread Tom Fishwick
Hi Richard, Thanks for the response. I'll try out the fifo. Tom [EMAIL PROTECTED] wrote: On Sun, June 12, 2005 12:57 pm, Tom Fishwick said: I have a script that spawns off a bunch of children with pcntl_fork(), but I can't figure out how to connect up a pipe from the parent to each

[PHP] pcntl_fork and reading from childs stdout

2005-06-12 Thread Tom Fishwick
Hi All, I have a script that spawns off a bunch of children with pcntl_fork(), but I can't figure out how to connect up a pipe from the parent to each childs stdout and stdin. In c I would use pipe,close and dup... any ideas would be appreciated. (that don't involve using proc_open() :-) Tom

Re: [PHP] pcntl_fork and reading from childs stdout

2005-06-12 Thread Richard Lynch
On Sun, June 12, 2005 12:57 pm, Tom Fishwick said: I have a script that spawns off a bunch of children with pcntl_fork(), but I can't figure out how to connect up a pipe from the parent to each childs stdout and stdin. In c I would use pipe,close and dup... This might help:

Re: [PHP] pcntl_fork and reading from childs stdout

2005-06-12 Thread Marek Kilimajer
Tom Fishwick wrote: Hi All, I have a script that spawns off a bunch of children with pcntl_fork(), but I can't figure out how to connect up a pipe from the parent to each childs stdout and stdin. In c I would use pipe,close and dup... any ideas would be appreciated. (that don't involve using