Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ben Yacoub Hatem  >  Process Killer  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Readme file
Class: Process Killer
kill all instances of a unix process
Author: By
Last change:
Date: 2004-06-26 04:09
Size: 535 bytes
 

Contents

Class file image Download
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 ?