This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
disco/tests/client/test-restricted-kill.sh

17 lines
322 B
Bash
Raw Permalink Normal View History

#!/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