# libtmux::Server::run_batch

- **Module:** libtmux::Server
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/server.hpp#L116
- **Page:** https://libtmux.org/reference/cxx/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.
