https://github.com/timofurrer/retry-cmd
Retry commands on the command line without all the loops you always used!
https://github.com/timofurrer/retry-cmd
cli linux retry rust
Last synced: about 1 year ago
JSON representation
Retry commands on the command line without all the loops you always used!
- Host: GitHub
- URL: https://github.com/timofurrer/retry-cmd
- Owner: timofurrer
- License: mit
- Created: 2019-02-16T21:05:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T10:12:09.000Z (about 3 years ago)
- Last Synced: 2025-03-31T13:04:31.362Z (about 1 year ago)
- Topics: cli, linux, retry, rust
- Language: Rust
- Size: 10.7 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# retry
Retry commands on the command line without all the loops you always used!
```bash
# Stop retrying after 10 tries
retry --max 10 -- curl -I https://unstable.site
# Stop retrying after 10 tries and wait 5 seconds between the each try
retry --max 10 --interval 5 -- curl -I https://unstable.site
# Stop retrying if exit code is 1
retry --exitcode 1 -- curl -I https://unstable.site
# Suppress stdout and stderr from the command
retry --quiet -- curl -I https://unstable.site
```
## Installation
```
cargo install retry-cmd
```