Wednesday, January 03, 2007

Killing multiple process at 1 go

[root@sriram sriram]# ps aux | grep -i sifyd | awk '{print $2}'
3099
3102
3103
3118

The above will list you the total process for application sifyd.

If you wish to kill all at one go, then add the below

[root@sriram sriram]# ps aux | grep -i sifyd |
awk '{print $2}' |xargs kill

No comments: