I have a Linux proxy server (RaspberryPi-3) running on squid. I want to start the squid service using an HTML button on its webpage. With this button, I'm trying to execute a python program to start the squid service:
#!/usr/bin/env python
import os
os.system ("sudo service squid restart")
But from the web page, it is not working.
What are the other options to get my squid turned on from the browser?