retryer

Takes a command and keeps rerunning it until it returns successfully. Has flags to limit number of retries and sleep between retires.


Keywords
program, system, Propose Tags, Skip to Readme, , retryer-0.1.0.1.tar.gz, browse, Package description, Package maintainers, dgonyeo, edit package information
License
MPL-2.0
Install
cabal install retryer-0.1.0.1

Documentation

retryer

Available through hackage.

Installing:

Have a working haskell install, and then

cabal install retryer

or

git clone https://github.com/dgonyeo/retryer.git
cd retryer
cabal install -j

Using:

Usage: retryer (-t|--tries <int>) (-d|--delay <double>) -- Command

Available options:
  -h,--help                Show this help text
  -t,--tries <int>         Number of times to retry the command. <= 0 disables.
  -d,--delay <double>      Seconds to wait before retrying the command. <= 0
                           disables.

So for example:

retryer -t 10 -d 5 -- ssh -p 222 user@example.com