how to kill looped process by command name code example
Example: how to kill looped process by command name
#!/bin/bash
while :
do
echo "Press [CTRL+C] to stop.."
for pid in $(ps -ef | awk '/your process name/ {print $2}'); do kill -9 $pid; done
sleep 1
done