Search code examples
web-serviceswebbuildbuild-processremote-access

Execute long-running script on server from web browser


I have project building script on Linux server which performs 10 operations within 100 seconds. Now I need to provide designers and artists of the project a way to run that script with minimal efforts from their side possible (what I think the best is "Build" button within http://ourproject.page) and being able to track building process (view result of each operation as it happens).

What's the best/easiest way to implement it?


Solution

  • Since you mentioned your script is written in python, and what you're interested in, is basically an example on how to implement a simple feedback between a client and a server, this is a simple implementation based on the flask web framework. This implementation was suggested in an answer to a question similar to yours. If you're not familiar with flask, you'll find tutorials on the page I linked above.