Server.cmd
Runs one tmux command against this server.
Source and package
- Qualified name
-
io.github .libtmux .Server. cmd - Package
- io.github.libtmux
- Declared in
Server- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- Other languages
- Perlmethod Erlangfunction PowerShell Julia Elixirfunction Haskell Common Lisp PythonRubyLuaTypeScriptRustGo C# C++ Swift Kotlin Scala OCaml F# Clojure
- @Operation(Kind
.MUTATION ) public CommandResult cmd(String... argv)@Operation(Kind.MUTATION ) public CommandResult cmd(List<String> argv)@Operation(Kind.MUTATION ) public CommandResult cmd( List<String> argv, Duration timeout) -
Description#
A command this release of tmux mishandles is refused with
UnsupportedFeatureExceptionbefore it is sent. Nested tmux command strings (if-shell,run-shell -C, hooks, brace blocks,source-file) are not checked; do not nest a command this library refuses.- Parameters
- Returns
-
the result, in which a nonzero exit is data rather than a failure for
cmd(argv) [overload 1]
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 |
| 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. |
| Perl | Lib Checked literal argument vector; no shell wrapper or implicit tmux command list. |
No equivalent is recorded in PowerShell, Julia, Common Lisp, Clojure, Kotlin, Scala or F#.