Moved some stuff around, added the first unit test, with no instructions on how to run it; updated readme for NOOP explanation.
This commit is contained in:
16
tests/client/test-restricted-kill.sh
Normal file
16
tests/client/test-restricted-kill.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user