ssh-retry
Execute shell commands with automatic retry and backoff on failure. Handle flaky network commands or services that need startup time.
Instructions
Execute a command with automatic retry and backoff on failure. Useful for flaky network commands or services that need time to start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backoff | No | Backoff strategy (default "exponential") | |
| command | Yes | Shell command to execute | |
| delayMs | No | Base delay between retries in ms (default 1000) | |
| session | No | Session name or id. Defaults to "default" | |
| maxRetries | No | Maximum number of retries (default 3) | |
| failPattern | No | Regex pattern - if output matches this, consider command failed regardless of exit code | |
| successPattern | No | Regex pattern - if output matches this, consider command successful regardless of exit code |