hello Friends,

Have anyone tried stopping a service say httpd usng a
cgi script ?
I have set a setuid for the cgi script and the script
is in the root cgi-bin directory namely
/var/www/cgi-bin/ with ownership root and have the
following contents in the file

#!/usr/bin/perl
$ENV{'PATH'} = '/bin:/usr/bin';
print"Content-type:text/html\n\n";
`/etc/rc.d/init.d/httpd stop`;

./file-name.cgi will stop the httpd but i want to stop
the httpd when i access this cgi through the browser.

Please help

regards
Nishanth

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to