I have a python CGI which runs some script in the background and shows the stdout in the html page. I run the script when the user clicks some button in the page.
My problem is when the script starts running the page becomes busy and the user can't use the other client side features in the page.
What I want is: The script should run in background when the user clicks the button and should notify the CGI when run is complete. Then the CGI show should the stdout of the script run.
How can this be done?