diff options
author | root <root@riffraff.tg14.gathering.org> | 2014-04-20 02:58:05 +0200 |
---|---|---|
committer | root <root@riffraff.tg14.gathering.org> | 2014-04-20 02:58:05 +0200 |
commit | 8f4ae8e5833f0d26be5fad5160ae6ee0479b0712 (patch) | |
tree | da5089e91fbe52fd7da57a1c431c9af64f6ac8af /clients/admintool.sh | |
parent | 37a3b5d6ed97367989aecc875f1db1e9eb0458df (diff) | |
parent | 19cd0064816a577b72577b9f21a5a946eb746f64 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'clients/admintool.sh')
-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 - |