Get live output of subprocess command
I would suggest running the sub process into cron and storing the output to a file/db where you can get the progress from the view. Another option is to go for threading using celery. 
The problem is that the view is not persistent, so you can not keep the hook to the output pipe across http requests.
In Django I need to run a shell command at some point. The command takes 6-10 minutes so I like to get live stdout from the command in my Django View in order to live track the command.
I now how to run the command and get live output with subprocess but I have no clue of how to pass the live output to the views.