Have your button redirect to a CGI script written in perl (or pretty much any language you like) that calls the script.
For example:
!/usr/bin/perl
use CGI qw(param);
print CGI::header(); @args = ("command", "arg1", "arg2");
system(@args) == 0
or die "system @args failed: $?"
print "<html><body>Command Executed!</body></html>";
The user that runs apache will need to have permissions to access yoru script (called "command" in the example). Arg1 and Arg2 are args passed to your script.
Note: I haven't tested this code let me know if it doesn't work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.