# LibTmux::Model::PaneRef.pipe

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L487
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-pipe/

```
method pipe(Str :$shell-command, Bool :$input = False, Bool :$output = True,
                Bool :$toggle = False --> Result:D)
```

The pipe command deliberately uses tmux's FORMAT and strftime shell-command syntax.

The pipe command deliberately uses tmux's FORMAT and strftime shell-command syntax.

## Parameters

- `$shell-command?` (`Str`)
- `$input?` (`Bool`)
- `$output?` (`Bool`)
- `$toggle?` (`Bool`)

## tmux command

The tmux commands behind `pipe`.

- [`pipe-pane`](/en/tmux/latest/manual/pipe-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_pipe_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_pipe_pane_entry/) (attribute)
- [`cmd_pipe_pane_exec`](/en/tmux/latest/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function)

## In other ports

Copy a pane's output to a shell command

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.pipe`](/en/py/latest/reference/libtmux-pane-pipe/) (method) |
| Ruby | [`LibTmux::Pane#pipe`](/en/ruby/latest/reference/libtmux-pane-pipe/) (method) |
| Erlang | [`tmux_pane:pipe/3`](/en/erlang/latest/reference/tmux_pane-pipe-3/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`pane.Pane.pipeTo`](/en/ts/latest/reference/pane-pane-pipeto/) (method) |
| Rust | [`pane.Pane.pipe`](/en/rs/latest/reference/pane-pane-pipe/) (method) |
| Go | [`tmux.Pane.Pipe`](/en/go/latest/reference/tmux-pane-pipe/) (method) |
| Java | [`io.github.libtmux.Pane.pipeTo`](/en/java/latest/reference/io-github-libtmux-pane-pane-pipeto/) (method) |
| C# | [`LibTmux.Pane.PipeAsync`](/en/csharp/latest/reference/libtmux-pane-pipeasync/) (method) |
| C++ | [`libtmux::Pane::pipe_to`](/en/cxx/latest/reference/libtmux-pane-pipe_to/) (method) |
| Swift | [`Server.pipe(_:to:)`](/en/swift/latest/reference/server-pipe(_-to-)/) (method) |
| 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, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
