i am running one linux command with shell_exec()
in my php script.
$output = shell_exec('/usr/bin/linux-command ');
After
execution of the command i am getting the value into a variable. That's okay.
But, here my linux command will give the output continuously in terminal
.
It will come like this..
$linux-command
123 456 789
789 456 123
123 456 789 .. //and so on..(by pressing 'Ctrl+c' only we can stop this.
For every 5 seconds it will display one line. how to retrieve the line for every 5 sec.
My Page is in loading ........ Because, it is waiting for the $output
.
Is there any way to solve my problem ??
Any idea is appreciated. Thank you in advance