Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fixed schedule

Fixed delay is the default schedule. It sleeps for a constant amount of time between attempts.

AttemptDelay
01
11
21

Specifying durations

Durations in attempt can include units, such as 5min. Durations without units are assumed to be in seconds. 300 would be interpreted as 300 seconds. Multiple units can be used together such as 1hr30m. You may include whitespace, so 1hr 30m is also valid.

The following units are supported:

  • Hours (h or hr)
  • Minutes (m or min)
  • Seconds (s)
  • Milliseconds (ms)
  • Nanoseconds (ns)

Example

# Because it is the default, specifying `fixed` is optional
attempt /bin/false
attempt fixed /bin/false

# Change the wait time from the default of 1 second to 15 seconds
attempt fixed -w 15s /bin/false
attempt fixed --wait 15s /bin/false

Arguments

-w --wait <DURATION>

The amount of time to sleep between attempts.