ssh_task_launch
Launches a command in the background on a remote server, returning its PID without waiting for completion. Output is logged to files for later inspection.
Instructions
Launch a command in the background and return its PID.
Unlike ssh_run, this does not wait for the command to complete. Output is redirected to files or /dev/null, not captured in memory.
Returns: Dictionary containing task information including PID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute in the background | |
| use_sudo | No | Run command with sudo | |
| stdout_log | No | Path to redirect stdout (default: /tmp/task-<pid>.log) | |
| stderr_log | No | Path to redirect stderr (default: same as stdout) | |
| log_output | No | Whether to log output to files |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||