Re: pcntl_fork and reading from childs stdout

From: Date: Sun, 12 Jun 2005 21:47:00 +0000
Subject: Re: pcntl_fork and reading from childs stdout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216869@lists.php.net to get a copy of this message
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: http://php.net/posix-mkfifo How you would tie stdout to your named pipe... Or perhaps you could http://php.net/exec something in each process to re-direct or tee stdin/stdout to your named pipes. Or... I dunno, really, just guessing. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#216869) next »