ah yes ... Dan said it better :) but then he is a bigger nerd than me ...
he has a truck which is more dalek than pickup :-P

Daniel Brown wrote:
> On 10/26/07, Jean-Christophe Roux <[EMAIL PROTECTED]> wrote:
>> Hello,
>> I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler
>> I launched a script, which contains an infinite loop, from bash typing:
>> php script.php
>>
>> I'd like to end that process. when typing ps -A, I don't see it. Is it
>> inside the Apache server? How could I reach it? I am quite lost.
>> More surprising to me is that after I rebooted the server, the script
>> was still running.
>>
>> Any idea how I could kill that "process"?
>> Thanks
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
>     If you broke it (CTRL+C) from the command line, then it wasn't a
> process, and you successfully killed the loop.
> 
>     If you ran it like so:
> php script.php &
> 
>     Then it daemonized it, which means you should type:
> ps -ef|grep php
> 
>     That will give you the PID on the left, and you can then type:
> kill -9 [PID]
> 
>     .... where [PID] is the PID number you saw.
> 
>     Because you ran it via the CLI, at no time was Apache involved whatsoever.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to