I have a python script that picks an URL as parameter and it fetch some data (normally it takes 30 seconds to finish) and creates a file with it. What I want is to be able to call the script from a web (I thought about doing it with PHP but i don't mind) and just get the file path (which is printed at the begining of the script process) and leave the script running in background.
how can i do this? which is the best way?
Note: I'm using a raspberry pi as a web server and the python file is located in /var/www/