# Server.run(_:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/CommandList.swift#L64
- **Page:** https://libtmux.org/reference/swift/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`
