1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 21:42:08 +02:00
tldr/pages/common/retry.md
2023-02-16 13:56:09 +05:30

16 lines
335 B
Markdown

# 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}}`