mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 14:59:01 +00:00
Update cheatsheets
This commit is contained in:
21
retry
Normal file
21
retry
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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}}`
|
||||
Reference in New Issue
Block a user