I have many perl scripts running on linux, which goes and do many tasks, each one of them takes like 10 mins (taking backups and stuff like that..) and outputs the each step.. so that User sees what is the script is doing at that time...
What I am doing right now is calling perl script from php through shell_exec() command,
what happens is that the output is shown after the script has finished the work and for that browser keep loading for 10 mins , which is not interactive.
So I want to get the output directly to browser from the perl script as it is running, meaning as soon or may be after 2 secs whatever output is there from perl script I want to show it on my webpage..