Skip to content

Instantly share code, notes, and snippets.

@nerestaren
Created May 20, 2017 13:38
Show Gist options
  • Save nerestaren/cd22dd3406e752cd57408d18bb313e97 to your computer and use it in GitHub Desktop.
Save nerestaren/cd22dd3406e752cd57408d18bb313e97 to your computer and use it in GitHub Desktop.
#/bin/bash
while true
do
ping -c 1 www.uib.es > /dev/null 2>&1
echo -e `date '+%Y-%m-%d %H:%M:%S'` '\t' $?
# sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment