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 DURATION.

The following units are supported:

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

Multiple units can be used together such as 1hr 30m.

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 DURATION
attempt fixed -w 15s /bin/false
attempt fixed --wait 15s /bin/false

Arguments

-w --wait <DURATION>

The amount of time to sleep between attempts.