Home

Clean virus server EyeQ

/bin/bash

while [ : ]
do
// Look for top process with shared memory = 412 and kill it
PID=$(top -n 1 | grep '412 S' | awk '{ print $1 }' | sed 's/[^0-9]//g')
PID2=$(top -n 1 | grep '412 S' | awk '{ print $2 }' | sed 's/[^0-9]
//g')

if [ -n "$PID" ]
then
echo Killing $PID...
kill $PID
fi

if [ -n "$PID2" ]
then
echo Killing $PID2...
kill $PID2
fi

sleep 1
done

comments powered by Disqus