> Markdown version of https://tuna.am/en/docs/cli/monitor/exec/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna monitor exec

Execute a command with monitoring.

Usage

```bash
tuna monitor exec KEY -- [COMMAND] [ARGUMENTS] [flags]

```

Examples

```bash
tuna monitor exec ABCD -- /path/to/file
tuna monitor exec ABCD --host=agent1 -- /path/to/file
tuna monitor exec ABCD --no-stdout -- /path/to/file --arg1 --arg2 --arg3

```

| Flag            | Description                            |
| --------------- | -------------------------------------- |
| `--host string` | Report host.                           |
| `--no-stdout`   | Disable sending stdout/stderr to Tuna. |

Also accepts the flags of [`tuna monitor`](https://tuna.am/en/docs/cli/monitor.md).

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.

## History

|        |                |
| ------ | -------------- |
| 0.29.0 | Command added. |
