# kosa8 cloud sandbox exec-status

Show a background command: running or exited, its exit code and output

## Usage

```
kosa8 cloud sandbox exec-status ID EXEC_ID
```

Prints the command's output so far (its first MiB; the whole file is at its
output path, readable with kosa8 cloud files get). With --wait, waits for it to
exit and then exits with its exit code, like exec.

Also known as: `bg`

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--timeout` | duration | with --wait: give up after this long | `1h0m0s` |
| `--wait, -w` | bool | wait for it to exit, then exit with its code |  |

## Example

```
  kosa8 cloud sandbox exec-status sbx_abc bg_0123456789abcdef
  kosa8 cloud sandbox exec-status sbx_abc bg_0123456789abcdef --wait --timeout 30m
```

---
Source: https://docs.kosa8.com/reference/cloud-sandbox-exec-status/
