https://github.com/justincampbell/rr
repeat/retry
https://github.com/justincampbell/rr
shell
Last synced: 8 months ago
JSON representation
repeat/retry
- Host: GitHub
- URL: https://github.com/justincampbell/rr
- Owner: justincampbell
- License: mit
- Created: 2014-03-29T13:55:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T20:23:56.000Z (about 12 years ago)
- Last Synced: 2025-03-18T08:39:44.705Z (over 1 year ago)
- Topics: shell
- Language: Shell
- Homepage:
- Size: 375 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# rr [](https://travis-ci.org/justincampbell/rr)
## `repeat` Repeats a command until it fails
## `retry` Retries a command until it succeeds
# Options
-c limit the number of times the command is run
-n override sleep in between commands (defaults to 1 second)
-r clear the screen before each command run
-q hide timestamps
# Examples
$ retry foo # Retry foo every second until it succeeds
$ repeat foo # Repeat foo every second until it fails
$ retry -n 2.5 foo # Wait 2.5 seconds in between retries
$ retry -c 10 -n 0 foo # Run foo 10 times as fast as possible
# Installation
## [Homebrew](http://brew.sh)
brew tap justincampbell/formulae
brew install rr
## Package
wget -O rr-latest.tar.gz https://github.com/justincampbell/rr/archive/latest.tar.gz rr
tar -zxvf rr-latest.tar.gz
cd rr-latest/
make install