Last active
November 15, 2017 18:08
-
-
Save kirkins/5ba962ea85f1bf186e18c2a02ca097bc to your computer and use it in GitHub Desktop.
Script that will try ssh until is succeeds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tryssh() | |
{ | |
until ssh $1; do | |
sleep 5 | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment