LibTmux.Server.RunShellAsync
- Module
- LibTmux
- Declared in
- Server
- Package
- LibTmux
- Source
- src/LibTmux/Server.Execution.cs
- Other languages
- PythonRuby Lua TypeScriptRustGoJavaC++ Swift
- RunShellAsync ( request : RunShellRequest , cancellationToken : CancellationToken ) Task<IReadOnlyList<string>?>
-
Runs a shell command and reports what it printed.
The directory flag arrived in tmux 3.4, the error-output flag in 3.6, and passing arguments without a shell in 3.7.
- Parameters
-
-
request ( RunShellRequest ) – What to run, and how.
-
cancellationToken ( CancellationToken ) – Cancels waiting for tmux's reply. tmux itself is not told: the server, not this process, owns
run-shell's spawned command, so cancelling stops this call from waiting on it, not the command from running. Nor does stopping the whole server:KillAsyncdoes not reap arun-shellchild either, so it keeps running as its own orphaned process.
-
- Returns
-
What the command printed, or null when tmux did not wait for it.
In other ports Run a shell command through tmux
- Python
libtmux.Server.run_shell - Ruby
LibTmux::Server#run - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
server.Server.runShell - Rust
server.Server.run_shell - Go
tmux.Server.RunShell - Java
io.github.libtmux.Server.Server.runShell - C++
libtmux::Server::run_shell - Swift
Server.run(_:in:)types a command into a pane rather than running it on the host
0 declared, 0 inherited