Killing ProcessName

 

 

It's about get the PID of the process then use it to kill:

You can use the ProcessName or do an advanced Filter.

 

 

[root@wissem-database ~]# echo kill -15  $(ps -H aux |grep 'ProcessName'| grep status |awk '{print $2}')
kill -15 31563 14264 32578 30213 12377 31471 32582 25839 22257 18736 17308 20640 13674 7077 8241 20975 18894 14448 8186 4380 4497 25795 16854 14416 3798 25768 13156 10299 31920 22278 6062 28603 31608 9698 28622 20794 4830 6921 397 27465 19113 2677 27221 18350 32419 22904 5425 25832 15698 5263 19884 9286 28736 17291 3936 25304 8084 20454 5842 17084 25444 21301 22865 9482 29319

 

[root@wissem-database ~]# kill -15  $(ps -H aux |grep 'ProcessName'| grep status |awk '{print $2}')

[root@wissem-database ~]#

 

Hope this Helps!

Wissem MEDIOUNI