run_command
Source and package
- Qualified name
-
LibTmux. run _command - Module
- LibTmux
- Package
- LibTmux
- Source
- src/process.jl
- run_command( connection::Lib
Tmux , argv::Abstract.Control Connection String ...; timeout, cancel, check, )run_command( server::LibTmux , args::Abstract.Server String ...; check, env, _checked, _version_guard , kwargs..., ) -
Methods
run_command( connection::Lib
Tmux , argv::Abstract.Control Connection String ...; timeout, cancel, check, )[source]Run an admitted command on the existing control connection. The initial allowlist covers exact-ID destruction and restricted-name buffer deletion; raw output producers, formats and borrowed wait channels are rejected. Cancellation before write admission sends nothing. After admission it reports uncertain effects; its ledger slot remains until the completion fence retires. No command is replayed and no other transport is selected.
run_command(connection::ControlConnection, argv...; timeout=5.0, cancel=nothing, check=true)run_command( server::Lib
Tmux , args::Abstract.Server String ...; check, env, _checked, _version_guard , kwargs..., )[source]Run one tmux client with literal arguments and return owned output bytes. The client uses UTF-8 mode independently of the caller's locale. Nonzero exits raise
CommandErrorunlesscheck=false. I/O yields to other Julia tasks. Cancellation kills and reaps the client, not any remote pane job. The call checks the release of the selected daemon, or of the executable that would create it, against tmux 3.7c. The first command to an endpoint probes the release; later commands to the same executable and endpoint skip the probe. Every command runs behind a fence on the checked release, so a replaced daemon raisesUnsupportedTmuxVersionbefore any effect. A fence mismatch, a vanished endpoint or a tmux 3.1 or older answer drops the remembered release and probes once more. The probe runs no user hook. It does not pin a server generation; use strict references only through transports that explicitly advertise that capability.run_command(server, args...; check=true, env=ENV, input=UInt8[], cancel=nothing,timeout=nothing, max_output_bytes=8388608, max_error_bytes=1048576)The first cancellation, deadline, output overflow or pipe error wins. Its
resultretains bounded output and observed exit/signal evidence after client retirement; it isnothingbefore submission. Failed input delivery is an I/O error even withcheck=false. Cleanup allows at most 900 ms for inherited output pipes after stopping the owned client, then closes them. After a client exits by itself, a pipe that stays open and silent for 250 ms is closed and the output read so far is returned. Return or failure joins I/O tasks, timer tasks and any running cancellation callback. If cleanup also fails,CompositeExceptionpreserves the primary error first.Arguments and individual environment entries are limited to a conservative 14 KiB; the combined client environment is limited to 128 KiB. Oversized entries fail before submission instead of being silently omitted by tmux. Inherited
TMUXandTMUX_PANEare removed, unlessservernames no socket: then tmux finds the server through them, as it does for any client that is given neither-Snor-L. A command that names no target then acts on the paneTMUX_PANEnames.- Parameters
-
-
connection(LibTmux ) for.Control Connection run_command(connection, argv, timeout, cancel, check) -
argv(Vararg{AbstractString }) forrun_command(connection, argv, timeout, cancel, check) -
timeout=5.0(Real) forrun_command(connection, argv, timeout, cancel, check) -
cancel=nothingforrun_command(connection, argv, timeout, cancel, check) -
server(LibTmux ) for.Server run_command(server, args, check, env, _checked, _version_guard, kwargs) -
args(Vararg{AbstractString }) forrun_command(server, args, check, env, _checked, _version_guard, kwargs) -
env=ENV(AbstractDict ) forrun_command(server, args, check, env, _checked, _version_guard, kwargs) -
_checked=nothing(Union{Nothing, Base.RefValue{Any}}) forrun_command(server, args, check, env, _checked, _version_guard, kwargs) -
_version_guard=nothingforrun_command(server, args, check, env, _checked, _version_guard, kwargs) -
kwargsforrun_command(server, args, check, env, _checked, _version_guard, kwargs)
-
Recorded calls
source callsThe Julia 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.run_command.
Guides
task materialPages that discuss run_command.