try-hard(1)

NAME
try-hard - retries a command multiple times in case of failure

SYNOPSIS
try-hard max_trials delay [-q | - -quiet] [-w | - -verbose] -- command ...
try-hard [-h | - -help]
try-hard [-v | - -version]

DESCRIPTION
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.

ARGUMENTS
The following options are available:

-q | - -quiet
    Quiet mode: no output is made.

-w | - -verbose
    Verbose mode: print selected delay and wake-up.

-h | - -help
    Prints the program's command-line parameters and exits.

-v | - -version
    Prints the program version and exits.

EXAMPLES

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

try-hard --version

try-hard --help