Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.runShell

TypeScript

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PythonRuby Lua RustGoJava.NETC++ Swift
runShell ( command : : string , options : : RunShellOptions ) → Promise<readonly string[]>
method [source]
method [source]
runShell

Run a shell command through tmux and return whatever it printed.

signal and timeoutMs bound this call's own wait; the tmux server owns and runs run-shell itself, decoupled from this client, so neither one stops the command - only this call's own promise settling early.

In other ports Run a shell command through tmux

Examples

const lines = await server.runShell("echo hello");
lines[0]; // "hello"
>>> result = server.run_shell('true')
>>> isinstance(result, list)
True

0 declared, 0 inherited

Esc

Type to search.