checkup.sh
author stephen
Thu, 17 Aug 2017 12:43:07 +0100
changeset 62 5fa8703565c4
permissions -rwxr-xr-x
aug17
     1 #!/bin/bash
     2 
     3 # set -x
     4 
     5 res=`ssh basil.dsg.cs.tcd.ie ping -c 1 tunloradtn | grep '1 received'`
     6 
     7 if [ "$res" == "" ]
     8 then
     9 	echo "down"
    10 else
    11 	echo "up"
    12 fi