guys.I want to use Flask that runs a shell script and displays its output in a web page. The thing is when I run the script, i want the page to display the output of every command in that script so that the user can see the process of the shell script in the web page.I have tried to use os.popen('/myscript.sh').read(),but this command will only display the final output after the whole script is finished which is not I want.
Is there a way to do that?