I am developing a webservice in PHP/Linux where I need to kill a process.
I tried using
exec(kill .$pid);
and
exec(kill -KILL .$pid);
but the return value was always 1 and the process still remained.
I wrote up a small shell script and have exec run that script. The script
worked fine if
On Fri, 2008-02-08 at 09:56 +0500, Fahad javed wrote:
I still think the problem is access rights. question is how to solve it.
Any help will be greatly appreciated.
Yes it is access rights. You will probably have to add PHP to the root
or wheel group as a user or something insane like
Fahad javed wrote:
I am developing a webservice in PHP/Linux where I need to kill a process.
I tried using
exec(kill .$pid);
and
exec(kill -KILL .$pid);
but the return value was always 1 and the process still remained.
I wrote up a small shell script and have exec run that script. The script
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Friday, February 08, 2008 12:04 AM
To: Fahad javed
Cc: php-general@lists.php.net
Subject: Re: [PHP] killing a process through php webservice
Fahad javed wrote:
I am developing a webservice in PHP/Linux where I need
Andrés Robinet wrote:
2 - Write or find a daemon capable of doing what you are trying to do
(execute commands on demand) but using some authentication model, so
that you can communicate with the daemon using a local socket (and
don't open the backdoor through TCP/IP). I don't have any clues
5 matches
Mail list logo