How to retry a bash command until its status is ok or until a timeout is reached?
My best shot (I\'m looking for something simpler):
NEXT_WAIT_TIME=0
One line and shortest, and maybe the best approach:
timeout 12h bash -c 'until ssh root@mynewvm; do sleep 10; done'
Credited by http://jeromebelleman.gitlab.io/posts/devops/until/