Server.cmd
cmd(@literal_arguments).
Source and package
-
Description#
Perform one checked literal tmux command and return
LibTmux::CommandResult. No shell wrapper or implicit tmux command list is used. Nonzero exits throw"Command" in LibTmux::Xor a more specific target/server error; transport failures propagate.my $result = $server->cmd('display-message', '-p', '#{version}');Methods#
In other ports#
Run a tmux command this port does not model
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux Executes an explicit command value with bounded output and separate outcome and cleanup evidence. |
| Elixir | Lib Runs one trusted Command without attaching a client and returns bounded output with exit evidence. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | io |
| C# | no equivalent on Server |
| C++ | no equivalent on Server |
| Swift | no equivalent on Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
No equivalent is recorded in PowerShell, Julia, Common Lisp, Clojure, Kotlin, Scala or F#.