commands.sh

retry

all

Repeat command until it succeeds or a criterion is met.

More info →

Options (2)

-d, --delayboolean

Retry a command every n seconds until it succeeds

Example: retry {{[-d|--delay]}} {{n}} {{command}}
-t, --timesboolean

Give up after n attempts

Example: retry {{[-t|--times]}} {{n}} {{command}}

Examples (3)

Retry a command until it succeeds

Retry a command every n seconds until it succeeds

retry [-d|--delay] n command

Give up after n attempts

retry [-t|--times] n command
made by @shridhargupta | data from tldr-pages