io.github.libtmux.Server.Server.runShellCapturing
Java
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.Server
- Declared in
- Server
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
-
Runs a shell command through tmux and answers with what it printed.
Separate from
#runShellbecause 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.tmux expands
#(...)in this command before a shell sees it, and shell quoting does not prevent that. Pass any interpolated value throughTmuxFormats#literalunless you mean it to be expanded.- Raises
-
-
UnsupportedTmuxVersionException – on the releases that lose the output
-
0 declared, 0 inherited