Skip to content

Instantly share code, notes, and snippets.

@ChrisSwanson
Created February 21, 2021 06:29
Show Gist options
  • Save ChrisSwanson/d6975c47cffe72beeb7fa0dac99c7050 to your computer and use it in GitHub Desktop.
Save ChrisSwanson/d6975c47cffe72beeb7fa0dac99c7050 to your computer and use it in GitHub Desktop.
# ping until host is up, then ssh to host.
until ping -c1 $hostname >/dev/null 2>&1; do ssh $hostname; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment