run_command
Source and package
- 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, 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, 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. This subprocess path checks no 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. 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 always removed.- 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=nothing(forrun_command(connection, argv, timeout, cancel, check)) # -
server( LibTmux ) (for.Server run_command(server, args, check, env, kwargs)) # -
args( Vararg{AbstractString } ) (forrun_command(server, args, check, env, kwargs)) # -
env=ENV( AbstractDict ) (forrun_command(server, args, check, env, kwargs)) # -
kwargs(forrun_command(server, args, check, env, kwargs)) #
-