diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-17 18:25:29 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-17 18:25:29 +0200 |
commit | 2ba6a83e9a7a4b3ae0def6a287bbb2d443538f41 (patch) | |
tree | 884b8133f9ebcb4edc6544f037e0b3b82fc7a4ce | |
parent | da381311eed480894faa065d6411584dfb7ba439 (diff) |
Remove obsolete ping tool.
-rwxr-xr-x | clients/admintool.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/clients/admintool.sh b/clients/admintool.sh deleted file mode 100755 index 889dd19..0000000 --- a/clients/admintool.sh +++ /dev/null @@ -1,19 +0,0 @@ -while :; do - ( - for i in $( cut -d" " -f1 pingswitches.txt ); do - ADMINADDR=$( echo $i | perl -pi -le '@x = split /\./; $x[3] += 2; $_ = join(".", @x);' ) - ( ( - if ping -c2 -W3 -q $ADMINADDR >/dev/null; then - grep $i pingswitches.txt | sed 's/^/PONGER: /' - else - grep $i pingswitches.txt | sed 's/^/PONGER IKKE: /' - fi - ) & ) - done - ) > pong.new - while pidof ping > /dev/null; do sleep 1; done - mv pong.new pong - echo "sleeping" - sleep 10 -done - |