2025-03-14 21:59:59 -06:00
|
|
|
# retry
|
|
|
|
|
|
|
|
|
|
> Repeat command until it succeeds or a criterion is met.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://manned.org/retry>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Retry a command until it succeeds:
|
|
|
|
|
|
|
|
|
|
`retry {{command}}`
|
|
|
|
|
|
|
|
|
|
- Retry a command every n seconds until it succeeds:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`retry {{[-d|--delay]}} {{n}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Give up after n attempts:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`retry {{[-t|--times]}} {{n}} {{command}}`
|