Server.run/3
Runs one trusted command without attaching; returns bounded output and exit evidence.
Source and package
- Qualified name
-
LibTmux .Server. run/3 - Module
- LibTmux
- Declared in
Server- Package
- libtmux
- Source
- lib/libtmux/server.ex
- run(server, command, options \\ []) @spec run(t(), Lib
Tmux (), [ Lib.Command .t Tmux () ]) :: {:ok, Lib.Transport .One Shot .option Tmux ()} | {:error, Lib.Transport .One Shot .result Tmux ()}.Error .t -
Description
The options are those of
LibTmux.Transport.OneShot.run/3, except:keep_tmux_contextand:native_helper, which belong to the descriptor. RaisesArgumentErrorfor a Server built by hand whosesocketorsocket_nameis notnilor a string, or that sets both.See the worked example.
- Parameters
-
-
options([LibTmux ()]).Transport .One Shot .option Default
[]
Recorded calls
source callsThe Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.run/3.
Guides
task materialPages that discuss run/3.
In other ports
task equivalence 10 other ports mappedSource-verified mappings for Run a tmux command this port does not model. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from Elixir |
|---|---|---|
| Elixir | Lib Runs one trusted command without attaching; returns bounded output and exit evidence. | This page |
| Python | libtmux Execute tmux command respective of socket name and file, return output. | None recorded in the model |
| Ruby | Lib Raw tmux arguments retain tmux's separators and format semantics. | None recorded in the model |
| Lua | libtmux Binds a snapshot record to a live handle of its class. | None recorded in the model |
| Erlang | tmux 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. | free function Executes an explicit command value with bounded output and separate outcome and cleanup evidence. |
| TypeScript | server Run a tmux command this package does not model. | None recorded in the model |
| Rust | server Execute one raw logical tmux command. | async |
| Go | tmux Cmd executes raw tmux arguments and returns caller-owned result slices. A completed nonzero exit remains a result; validation and transport failures return errors. Cancellation cannot prove whether a mutation reached tmux. | None recorded in the model |
| Java | io Runs one tmux command against this server. | 3 overloads |
| Perl | Lib cmd(@literal_arguments). | Checked literal argument vector; no shell wrapper or implicit tmux command list. |
| Raku | Lib Execute explicit tmux command syntax in the currently observed daemon. | None recorded in the model |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Server
no equivalent on Server
no equivalent on Server
No direct public OCaml equivalent is recorded for this operation.
No equivalent is recorded in PowerShell, Julia, Common Lisp, Clojure, Kotlin, Scala or F#.