ssh_run_background
Run long commands on a remote server in the background, then check progress and output with job_status. Use for builds or tests that take over 30 seconds.
Instructions
Start a long-running command in the background on the remote server.
Use this for commands that take more than 30 seconds (e.g., builds, test suites). The command runs detached via nohup. Use ssh_job_status to check progress and retrieve output.
Args: command: Shell command to run in the background. cwd: Working directory on the remote. Defaults to host's default_cwd. job_id: Optional human-readable job ID. Auto-generated if omitted. host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| cwd | No | ||
| job_id | No | ||
| host | No |