hi ,
i have a executable perl script which is runs in the Linux box. This perl script supports to send and receive some web contents. So some instance i want to stop that script via web interface. That's mean when clicking a button it should kill the certain PID with the script.
root 471 1 0 Aug06 ? 00:00:00 abc.pl
located by PID ( 471 ) , Can somebody tell me how do to this cgi script ............plz
This isn't a general CGI list but for CGI::Application specific discussions. You question would probably find a better answer on a normal cgi or perl list.
Having said that, I'll try to offer up some advice. The first thing to look at is the that the web process will need to have the right permissions to be able to kill that process. The webserver will typicall run as 'nobody' or 'web' or 'www' or whatever the server is setup to run as.
It looks like your process is owned by root. If this is the case your web script will never be able to kill it. The abc.pl script will need to be started by the same user that the web server runs as.
Once you do that you can us 'ps' or something like it to find the pid of that process and then just 'kill' it.
-- Michael Peters Developer Plus Three, LP
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]