This commit is contained in:
Sheppy
2017-10-25 18:29:33 +02:00
parent e68b0efcec
commit 1b41852740
2 changed files with 10 additions and 5 deletions

8
zshrc
View File

@@ -300,12 +300,12 @@ alias ssh="ssh_func"
### EXPERIMENTAL ###
## kill all cip sessions except this pc ##
genocide(){
while IFS='' read -r line || [[ -n "$line" ]]; do
TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/password.cip) "https://atlantishq.de/cipactive/active_logins")
echo $TMP | while read line; do
if [[ $line != $HOST ]]; then
ssh -q $line -t "pkill -u ik15ydit"
ssh -n -q $line -t "pkill -u ik15ydit"
fi
done < "$HOME/.config/cip_logins"
#truncate -s 0 ~/.config/cip_logins
done
}
export genocide
alias insurgency_status="ssh insurgency@atlantishq.de -t /usr/local/bin/insurgency_rcon status"