tldr/pages/common/retry.md

17 lines
335 B
Markdown
Raw Normal View History

2023-02-16 08:26:09 +00:00
# retry
> Repeat command until it succeeds or a criterion is met.
> More information: <https://github.com/minfrin/retry>.
- Retry a command until it succeeds:
`retry {{command}}`
- Retry a command every n seconds until it succeeds:
`retry --delay={{n}} {{command}}`
- Give up after n attempts:
`retry --times={{n}} {{command}}`