Hi all,
I have difficulty getting a cgi script to start linux services (e.g. `/etc/init.d/ntpd start`). I'm using apache that's being run as daemon.
I tried running with sudo but without success. What is the most appropriate way to start services via perl cgi script?
I was thinking of using a perl script running in the background by root to pick up commands left by the cgi script and then executing them. But this seems like a silly way of doing things. Are there any suggestions?
Thanks.