> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# anona-compute output

> Print the output of a command started with exec --background

```text
Print the stdout and stderr of a command started with anona-compute exec -b,
which keeps them in the sandbox under /tmp/anona-compute-bg. stdout goes to
stdout and stderr to stderr; a line on stderr says whether the process is
still running or how it exited.

  anona-compute exec -b ID -- 'npm run dev'      prints the PID
  anona-compute output ID PID                    everything so far
  anona-compute output ID PID -f                 follow until the process ends

With --json: one object {"pid","state","exit_code"?,"stdout","stderr"}; with
-f, {"type":"stdout"|"stderr","data"} lines and a final {"type":"exit",...}.
Processes started any other way have no saved output (anona-compute ps lists them).
```

## Usage

```text
anona-compute output SANDBOX_ID PID [flags]
```

## Flags

| Flag | Type | Description |
| - | - | - |
| `--follow`, `-f` | | keep printing output until the process ends |
| `--help`, `-h` | | help for output |
| `--user`, `-u` | string | user to read the output as (default: the sandbox's default user) |

Global flags (`--api-key`, `--api-url`, `--json`, `--output`, `--profile`, `--request-timeout`, `--verbose`) work on every command; see [anona-compute](/docs/cli/reference/anona-compute.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.