Wednesday, February 7, 2018

How to Kill Multiple *nix processes

Example 1: Remove FNDLIBR processes

kill `ps -ef | grep FNDLIBR | grep -v grep | awk '{print $2}'`

Example 2: Remove DCLIENT_PROCESSID  processes
kill `ps -ef | grep DCLIENT_PROCESSID | grep -v grep | awk '{print $2}'`

No comments:

Post a Comment