tmux_server:command/3
Execute one validated command and await its result. Performs I/O. The result preserves stdout, stderr, exit status and cleanup certainty. Use tmux_operation:start/3 to submit without blocking this caller. A timeout or cancellation cannot reverse effects that may already have reached tmux. Values from domain command builders keep their captured endpoint origin. Another endpoint returns different_owner with submitted = false before any native preflight or execution. Raw commands do not carry that origin.
Source and package
- Qualified name
-
tmux_server: command/3 - Declared in
tmux_server- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_server.erl
- Other languages
- Perlmethod PowerShell Julia Elixirfunction Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJava C# C++ Swift Kotlin Scala OCaml F# Clojure
- command(Server, Command, Options) -spec command(t(), tmux
_command: (), commandt _options ()) -> {ok, tmux_operation: ()} | {error, tmuxcompleted _operation: ()}.failure -
- Parameters
-
-
Command(tmux_command: ()) #t -
Options(command_options ()) #
Guides#
Pages that discuss command/3.
In other ports#
Run a tmux command this port does not model
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| 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. |
| 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#.