I'm after writing something similair with perl, however not sure how do issue `service squid reload`, since the command requires root privileges, and apache won't run as root since it's too dangerous.
What's the best way of getting around this? Regards, Adam On Wed, 2002-07-03 at 22:42, Craig Baird wrote: > Use cgi-lib.pl and Perl to get the data from your web forms into your > script. You can get cgi-lib.pl from: > > http://cgi-lib.berkeley.edu > > -- > Craig > Xpressweb Internet Services > [EMAIL PROTECTED] > http://www.xpressweb.com > > > > On Wed, 3 Jul 2002, Mark A Lewis wrote: > > > I have been trying to find a way to allow users to remove sites from the ads >blacklist, currently I am doing it via a simple little script that asks them for the >domain to be removed and then writes that to a log (to allow them to be removed from >updates as well), removes it from the list and reloads squid. But, this requires them >to ssh to the machine, log in with a generic account and so on and soforth... I am >looking for a way to move this to a web form, I have googled till I am blue in the >face with no luck. Basically what I need is a way to pass the form input as a >variable to a script to perform the same action. Has anyone ever seen this done or >have any ideas on how to approach this? > > > > > > TIA, > > > > Mark > > >
