Skip to content

Instantly share code, notes, and snippets.

@timjb
Created May 25, 2012 19:44
Show Gist options
  • Select an option

  • Save timjb/2790113 to your computer and use it in GitHub Desktop.

Select an option

Save timjb/2790113 to your computer and use it in GitHub Desktop.
#!/bin/bash
while ping -c1 google.com > /dev/null; do
echo "reachable"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment