cURL
curl --request GET \ --url http://localhost:4242/{computer_name}/api/bash/process/{pid}/output
{ "output": "Processing...\n50% complete", "process_id": 1234, "status": "background" }
Retrieves the output of a background process by its ID.
Successfully retrieved process output
Command output if available
"total 20\ndrwxr-xr-x 3 user group 96 Mar 10 12:34 ."
Process ID if running in background
1234
Command status: 'completed' or 'background'
"completed"