Dawid Ciężarkiewicz (dpc)

Mostly coding and rants

github twitter linkedin stackoverflow gitter pinboard email rss
Shell tip: `retry.sh`
Sep 15, 2016
One minute read

It’s often the case when I have a command you want to retry until it’s successful.

It’s useful to have retry.sh script like this:

#!/bin/sh

while ! "$@"; do sleep 1; done

Back to posts