# LibTmux::Server.run-shell

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L483
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-run-shell/

```
method run-shell(Mu $script, *%options --> Result:D)
```

Run literal shell source through tmux. Background acknowledgement is not job completion.

Run literal shell source through tmux. Background acknowledgement is not job completion.

## Parameters

- `$script` (`Mu`)
- `%options`

## tmux command

The tmux commands behind `run-shell`.

- [`run-shell`](/en/tmux/latest/manual/run-shell/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_run_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_run_shell_entry/) (attribute)
- [`cmd_run_shell_exec`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function)

## In other ports

Run a shell command through tmux

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.run_shell`](/en/py/latest/reference/libtmux-server-run_shell/) (method) |
| Ruby | [`LibTmux::Server#run`](/en/ruby/latest/reference/libtmux-server-run/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`server.Server.runShell`](/en/ts/latest/reference/server-server-runshell/) (method) |
| Rust | [`server.Server.run_shell`](/en/rs/latest/reference/server-server-run_shell/) (method) |
| Go | [`tmux.Server.RunShell`](/en/go/latest/reference/tmux-server-runshell/) (method) |
| Java | [`io.github.libtmux.Shell.run`](/en/java/latest/reference/io-github-libtmux-shell-shell-run/) (method) |
| C# | [`LibTmux.Server.RunShellAsync`](/en/csharp/latest/reference/libtmux-server-runshellasync/) (method) |
| C++ | [`libtmux::Server::run_shell`](/en/cxx/latest/reference/libtmux-server-run_shell/) (method) |
| Swift | `Server.run(_:in:)` types a command into a pane rather than running it on the host |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
