mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
438 B
Plaintext
22 lines
438 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://manned.org/retry>.
|
|
|
|
- Retry a command until it succeeds:
|
|
|
|
`retry {{command}}`
|
|
|
|
- Retry a command every n seconds until it succeeds:
|
|
|
|
`retry {{[-d|--delay]}} {{n}} {{command}}`
|
|
|
|
- Give up after n attempts:
|
|
|
|
`retry {{[-t|--times]}} {{n}} {{command}}`
|