I have a Python script that outputs something every second or two, but takes a long time to complete completely. I want to configure the site so that someone can directly call the script, and the output is sent to the screen while the script is running.
I do not want the user to wait for the script to complete, because then all the output is displayed immediately. I also tried this and the connection always fails.
I do not know what this process is called, what terms I am looking for and what I need to use. CGI? Ajax? You need some serious guidance, thanks!
If that matters, I plan to use Nginx as a web server.
source
share