Process Killer
Author : Ben Yacoub Hatem <hatem at php dot net>
This class is meant to kill all instances of a unix process by entering its name. Inspite of running "ps -aux",
check the pid of the process and then kill it ... this script can help you to automate this task.
Sample USAGE :
For example run 2 instances of php
$php &
$php &
$ps -aux
then cd to Process killer directory
$cd processkiller
$php pkill.php php
run again ps to verify that the 2 instances have been killed.
$ps -aux
Any comment ? |