# libtmux::Server::run_batch

- **Module:** libtmux::Server
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/server.hpp#L198
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-server-run_batch/

```
libtmux::Server::run_batch(batch: const CommandBatch &) -> expected< std::string, CommandFailure >
```

Run several commands in one invocation.

tmux runs a batch fail-fast, so a failed batch is partially applied rather than rolled back, and one exit status covers the group, so tmux does not identify which member failed.
