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
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) |
--api-key, --api-url, --json, --output, --profile, --request-timeout, --verbose) work on every command; see anona-compute.