I run the shell on the command line after 1 hour. I want to use a PHP script to stop it. I knew its $ pid 2000 with getmypid ();
I used a PHP script like: exec("kill 2000");exec("kill -KILL 2000"); exec("kill -9 2000"); posix_kill(2000,9);but could not kill it.
If in the terminal I just use ~$ kill 2000. But can not with PHP script.
source
share