1
0
Fork 0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__config_lalis/kill_ssh_daniel.sh

11 lines
129 B
Bash
Executable File

#!/usr/bin/sh
for x in `ps h -u daniel -o pid`
do
echo $x "=>"
grep ssh /proc/$x/status
if [ $? -eq 0 ]; then
kill $x
fi
done