Skip to content

retry -c 10 -i 5s -t 1s -- echo "retrying this every 5 seconds 10 times with a one second timeout."

License

Notifications You must be signed in to change notification settings

wingsuitist/retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The missing retry command

NAME:
   retry - The missing retry command

USAGE:
   retry [options] -- command

GLOBAL OPTIONS:
   --count value, -c value     Number of retries (default: 5)
   --interval value, -i value  Interval between retries (default: 3s)
   --timeout value, -t value   Timeout for each command run (default: 1s)
   --verbose, -v               Verbose output (default: false)
   --help, -h                  show help

Installation

To check out all available releases visit: https://github.com/wingsuitist/retry/releases/ Follow these instructions to download and install the retry command on your local system.

macOS

You'll need to download and extract the binary before moving it to your bin directory:

curl -LO https://github.com/wingsuitist/retry/releases/download/v0.0.4/retry_0.0.4_darwin_arm64.tar.gz
tar xzvf retry_0.0.4_darwin_arm64.tar.gz

# to install globally use
sudo mv retry /usr/local/bin/

# to install it only for your user move it to `~/.bin/`
# make sure `~/.bin/` is in your PATH variable
mv retry ~/.bin/

Linux

You'll need to download and extract the binary before moving it to your bin directory:

curl -LO https://github.com/wingsuitist/retry/releases/download/v0.0.4/retry_0.0.4_linux_amd64.tar.gz
tar xzvf retry_0.0.4_linux_amd64.tar.gz
sudo mv retry /usr/local/bin/

Windows

For Windows, you will need a tool that can extract tar.gz archive like 7-Zip.

  1. Download your architecture's .tar.gz file from the releases page
  2. Extract both the outer .tar.gz file and the resulting .tar file with 7-Zip.
  3. From the extracted files you can move the retry.exe to C:\Windows\.

About

retry -c 10 -i 5s -t 1s -- echo "retrying this every 5 seconds 10 times with a one second timeout."

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages