# Server.run(_:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/CommandList.swift#L65
- **Page:** https://libtmux.org/en/swift/latest/reference/server-run(_-)/

```
Server.run(_:)(list: TmuxCommandList) -> TmuxReply
```

Runs a list of commands in one tmux invocation.

The reply covers the whole list. tmux stops at the first command that
fails, so a nonzero status means some prefix of the list ran — read the
standard error to learn which command tmux objected to.

Running an empty list is a no-op that reports success without invoking
tmux at all.

## Raises

- `TmuxError`
