Re: redirect a shell command to stdout in real time

From: Date: Tue, 11 Sep 2012 15:21:09 +0000
Subject: Re: redirect a shell command to stdout in real time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-319037@lists.php.net to get a copy of this message
You can use pipe to run the command and capture the stdout. Then dump it with proper header to browser. Note, If the external command (specially video encoding) takes long time you should probably use cron for this and maintain a queue. I recommend you apply some sorts of caching also. -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader

« previous php.general (#319037) next »