---
title: "Get Process Output"
method: GET
path: "/api/bash/process/{pid}/output"
tags: ["bash"]
---

# Get Process Output

`GET /api/bash/process/{pid}/output`

## Request

- Base URL: `http://localhost:4242/your-computer-name`
- URL: `http://localhost:4242/your-computer-name/api/bash/process/{pid}/output`
- Auth: none declared

Retrieves the output of a background process by its ID.

## Path parameters

- `pid` integer, required

## Response `200`

Successfully retrieved process output

- CommandResponse
  - `output` string, nullable: Command output if available
  - `process_id` integer, nullable: Process ID if running in background
  - `status` string: Command status: 'completed' or 'background'

## Other responses

- `404`: Process not found
- `422`: Validation Error
- `500`: Internal server error

## Changes

- **2026-07-13** `5424450258fc`: 1 info
  - endpoint added
- **2025-01-13** `a2d864f3a8db`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/changes/api/bash/process/:pid/output/get.md)

---

[API](https://skmtc.dev/cuse-dev/apis/cuse-apps-api.md) - [All operations](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cuse-dev/apis/cuse-apps-api/revisions/5424450258fc?raw)
