You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
195 B

#!/bin/bash
pids=` ps -ef | grep $1 | grep -v grep | awk '{print $2}' `
if [ -n "$pids" ]; then
for pid in ${pids[@]}; do
echo " kill -p $pid"
kill -9 $pid
done
fi
exit 0