Find and Kill Range of Forked Processes

This will find all process IDs of a forked perl script, loop through them and issue kill command to shutdown all processes that this script runs in. Do as root


ps -ef | grep some.php | grep -v grep | awk '{print $2}' | sudo xargs kill -9 

Leave a comment

0 Comments.