wasted
02-06-2008, 06:25 AM
We have exec(), system(), passthru(), functions in php to execute the shell commands via php.
All these script sends the shell command and waits till they are complete and return its output at the end. But, in my case a command takes almost 2 minutes to complete and it returns the command status in percentage which updates each second. So, what i need is. I want to stream the command output contineously .
(actually, i'm converting a video using ffmpeg and it takes while ffmpeg command returns the status of video conversion).
Rgds,
rubin
All these script sends the shell command and waits till they are complete and return its output at the end. But, in my case a command takes almost 2 minutes to complete and it returns the command status in percentage which updates each second. So, what i need is. I want to stream the command output contineously .
(actually, i'm converting a video using ffmpeg and it takes while ffmpeg command returns the status of video conversion).
Rgds,
rubin