Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kill process bash

this is to kill many process (mistakenly submitted) 

#!/bin/bash
while :
do
    echo "Press [CTRL+C] to stop.."
    for pid in $(ps -ef | awk '/pmemd.cuda/ {print $2}'); do kill -9 $pid; done  

    sleep 1
done

Source by www.linux.com #
 
PREVIOUS NEXT
Tagged: #kill #process #bash
ADD COMMENT
Topic
Name
7+2 =