ultibuzz has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monk's,
i've written a simple cgi script so i can kill processes on a linux server.
the problem is the process don't get killed at all.
script is owned by the running oser of the process and this user is allowed to kill processes.
a hint, or a slam with a tree woud be nice ;)
below is the kill function,that is triggered when u hit a button.
sub exec_restart { my $pids = param('pids'); my @pid = split(";",$pids); kill -9,@pid; print header; print qq(<HTML> <HEAD> <TITLE>CONSOLE 0.1</TITLE> </HEAD> <BODY> <p><div align="center">killed... $pids</div></p> </BODY> </HTML>); }
kind regards ultibuzz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: killing linux process with CGI
by moritz (Cardinal) on Oct 15, 2007 at 13:13 UTC | |
by halley (Prior) on Oct 15, 2007 at 13:32 UTC | |
by ultibuzz (Monk) on Oct 15, 2007 at 13:31 UTC | |
Re: killing linux process with CGI
by northwind (Hermit) on Oct 15, 2007 at 14:42 UTC | |
Re: killing linux process with CGI
by lorn (Monk) on Oct 15, 2007 at 13:43 UTC | |
Re: killing linux process with CGI
by zentara (Archbishop) on Oct 15, 2007 at 14:25 UTC | |
by ultibuzz (Monk) on Oct 15, 2007 at 14:31 UTC | |
Re: killing linux process with CGI
by blue_cowdawg (Monsignor) on Oct 15, 2007 at 16:35 UTC | |
Re: killing linux process with CGI
by ultibuzz (Monk) on Oct 15, 2007 at 14:08 UTC | |
Re: killing linux process with CGI
by tinita (Parson) on Oct 16, 2007 at 08:19 UTC | |
Re: killing linux process with CGI
by ultibuzz (Monk) on Oct 16, 2007 at 07:06 UTC |
Back to
Seekers of Perl Wisdom