# io.github.libtmux.Server.Server.runShellCapturing

- **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#L222
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-server-server-runshellcapturing/

```
io.github.libtmux.Server.Server.runShellCapturing(command: String) -> List<String>
```

Runs a shell command through tmux and answers with what it printed.

<p>Separate from {@link #runShell} because tmux 3.3a and 3.4 run the command and then report
nothing, on every attempt. A caller who wants the effect is fine there; a caller who wants the
output would silently get none, so this one refuses rather than answering emptily.

## Raises

- `UnsupportedTmuxVersion` — on the releases that lose the output
