Files
cheatsheet-tldr/retry
2024-02-21 11:19:49 +00:00

22 lines
428 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`