ssh_execute_background
Run a command in the background on a remote Linux machine via SSH, ensuring it continues after session ends, with output redirected to a log file.
Instructions
Run a command in the background using nohup.
The command will continue running even after the SSH session ends. Output is redirected to a log file.
Args: command: Command to run in background log_file: Path for output log (default: /tmp/bg_command_.log) session_name: SSH session to use (default: 'default')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| log_file | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |