ssh_persistent_status
Check whether a remote persistent process is still running, view its last stdout and stderr log lines, and retrieve its exit code.
Instructions
Check the status of a persistent job started by ssh_run_persistent. Returns whether the process is still running, the last lines of its stdout and stderr logs, and the exit code (if it finished).
You need the PID and the log paths returned by ssh_run_persistent. Example: ssh_persistent_status(pid=12345, out_log='/tmp/mcp-persistent/abc123/out.log', err_log='/tmp/mcp-persistent/abc123/err.log')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The remote PID returned by ``ssh_run_persistent``. | |
| out_log | Yes | Path to the stdout log file on the remote. | |
| err_log | Yes | Path to the stderr log file on the remote. | |
| host | No | Host alias. Defaults to the default host. | |
| tail_lines | No | How many lines to return from each log. Default 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||