# io.github.libtmux.Server.Server.runTogether

- **Module:** io.github.libtmux.Server.Server
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Server.java#L609
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-server-server-runtogether/

```
io.github.libtmux.Server.Server.runTogether(snapshot: ServerSnapshot, commands: List<List<String>>) -> CommandResult
```

Runs several commands in one invocation, so nothing of this caller's happens between them.

<p>tmux carries a group to its server as one message and runs it there, so a caller that stops
partway cannot leave the group half applied. That is what an operation whose second command
cleans up after its first needs.
