> For the complete documentation index, see [llms.txt](https://docs.oxygenhq.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oxygenhq.org/download-installation-start/modules/module-shell.md).

# shell

## assertErrorOutput

Assert that the shell command's error output (stderr) matches the specified pattern.

**Parameters:**

| Name      | Type     | Description        |
| --------- | -------- | ------------------ |
| `pattern` | `String` | Pattern to assert. |

## assertOutput

Assert that the shell command's output (stdout) matches the specified pattern.

**Parameters:**

| Name      | Type     | Description        |
| --------- | -------- | ------------------ |
| `pattern` | `String` | Pattern to assert. |

## exec

Execute command

Spawn child process

**Parameters:**

| Name      | Type     | Description                                                       |
| --------- | -------- | ----------------------------------------------------------------- |
| `command` | `String` | Shell command to be executed, including arguments, if applicable. |

**Returns:**

`Object` - Response object containing stdout, stderr, exit code, and signal (if process was terminated by a signal).
