You would need to have http server software installed (i.e. apache).
Scripts are very simple depending on what programming language you use. You can use just about anything, shell (ksh, sh, bash), perl and I've even seen CGI programs written in C.
If you were to use this method, you would need to make sure apache or whatever http server you are using is configured properly and running, and then you would create a form that pointed to the CGI script that you have. For example, your html might have an insert like this:
Code:
<FORM action="/path/to/cgi-bin/myscript.cgi" method="get">
<INPUT type="submit" value="Send"> <INPUT type="reset">
</P>
</FORM>
Then you would create your "myscript.cgi" script somewhat like this:
Code:
#!/bin/ksh
/path/to/command
Make sure the script is excutable and can be run by whoever the user is that starts the http server (usually nobody or apache).
since you are only wanting to give them the ability to run the command you don't have to display anything so the script is very simple. If you wanted to display a page or pass arguments to the script from the html form, that is a different story, but again, it's not that difficult once you figure out how CGI works.
Regards,
Chuck