17 lines
322 B
Bash
17 lines
322 B
Bash
#!/bin/bash
|
|
|
|
ps ax | grep -i ssh
|
|
echo 'I am going to kill some SSH processes now!'
|
|
killall -9 ssh
|
|
ps ax | grep -i ssh
|
|
if [ $? -eq 0 ]; then
|
|
echo "Well crap that didnt work"
|
|
/usr/bin/killall -9 ssh
|
|
ps ax | grep -i ssh
|
|
if [ $? -eq 0 ]; then
|
|
echo "SAD FACE I CANT KILL STUFF :("
|
|
else
|
|
echo "The jokes on you"
|
|
fi
|
|
fi
|