Script para GeekTool 3 para ping a un host
Este script hace ping a chocolim.com y te dice cuando tardo. Si en el GeekTool activas Activate Feedback Image te va a decir si tuvo exito. Util para monitorear el estado de un servidor.
HOST=Chocolim.com PING=`ping -q -c 1 $HOST` if [[ $? -eq 0 ]] ; then TIME=`echo $PING |tail -1 | cut -d/ -f 5` echo Chocolim.com: ${TIME}ms exit 0 else echo -n $HOST Chocolim.com exit 2 fi
This entry was posted on Lunes, julio 26th, 2010 at 7:41 pm and is filed under Osx. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.