try-hard
— retry a
command multiple times in case of failure
try-hard |
max_trials delay [-q |
--quiet ] [-w |
--verbose ] -- command ... |
try-hard
tries to run a command up to a
given number of trials. In case of failure, a given delay time is waited
before the next trial.
The following options are available:
-q
|
--quiet
- Quiet mode: no output is made.
-w
|
--verbose
- Verbose mode: print selected delay and wake-up.
- try-hard 10 60 --verbose -- git clone
https://dreibh@github.com/dreibh/rserpooldemo.git
-
- try-hard 3 300 -q -- git clone https://git.freebsd.org/ports.git
-
- try-hard 3 60 -- wget -O example.tar.gz
https://www.example.net/example.tar.gz
-
- try-hard 100 1 -w -- false
-