pcntl_fork and reading from childs stdout
| From: | Tom Fishwick | Date: | Sun, 12 Jun 2005 19:57:12 +0000 |
| Subject: | pcntl_fork and reading from childs stdout | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216867@lists.php.net to get a copy of this message | ||
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