new_session
Source and package
- Module
- LibTmux
- Package
- LibTmux
- Source
- src/operations.jl
- new_session( connection::Lib
Tmux ; name, command, shell.Control Connection _command , start_directory , environment, kwargs... ) new_session( server::LibTmux ; name, command, shell.Server _command , start_directory , environment, kwargs... ) -
Methods#
new_session( connection::Lib
Tmux ; name, command, shell.Control Connection _command , start_directory , environment, kwargs... )[source]#Create a detached session on the connected daemon and return its
SessionRef. Command, directory and environment options follow the subprocess method. Names must be valid UTF-8 without control bytes; tmux's name normalization still applies. The connection pins daemon identity and the prefixed reply verifies that identity. Cancellation after submission may leave a created session; no retry or automatic destruction occurs. The returned session is caller-owned.new_session(connection::ControlConnection; name, kwargs...)new_session( server::Lib
Tmux ; name, command, shell.Server _command , start_directory , environment, kwargs... )[source]#Create a detached session and return its generation-bound
SessionRef.commandis an argv vector;shell_commandexplicitly runs/bin/sh -c. An executable name beginning with-requires/-nameor an absolute path; arguments after the executable may begin with-. Omitting both uses tmux's configured default command. Creation can start a daemon at this endpoint. The returned reference does not own automatic cleanup.environmentis a mapping or pairs of portable names to literal string values, passed at creation without format expansion. Duplicate names are rejected.new_session(server; name, command=nothing, shell_command=nothing,start_directory=nothing, environment=(), timeout=5.0, cancel=nothing, strict=false)Subprocess identity checks are best effort.
strict=truerefuses execution; there is no silent downgrade or replay after uncertain failure. An invalid creation reply raisesCreationResponseErrorwith command evidence.- Parameters
-
-
connection( LibTmux ) (for.Control Connection new_session(connection, name, command, shell_command, start_directory, environment, kwargs)) # -
name( AbstractString ) # -
shell_command=nothing# -
start_directory=nothing# -
environment=()# -
server( LibTmux ) (for.Server new_session(server, name, command, shell_command, start_directory, environment, kwargs)) #
-