retry

command
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Command retry re-runs a command a number of times until it succeeds.

Usage: retry <count> <command> [args...]

retry will run <command> with [args...]. If it exits with a non-zero code, it will be re-run up to <count> times. <count> may not be negative.

The exit code of retry is the exit code of the last execution of <command> or 1 if retry exits with its own error.

<command> is executed directly with [args...] as provided. If <command> does not contain any path separators, the search path is used to locate it. No shell is used to run <command>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL