Skip to content

Instantly share code, notes, and snippets.

@ferminhg
Last active December 12, 2015 04:28
Show Gist options
  • Save ferminhg/4714058 to your computer and use it in GitHub Desktop.
Save ferminhg/4714058 to your computer and use it in GitHub Desktop.
SSH: Detectar si una web esta o no caida
#!/bin/sh
ping -c 1 server.com >/dev/null 2>&1
if [ "$?" != 0 ]
then
echo "down :_("
date
else
echo "up :-)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment