# tmux.Pane.Pipe

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/pane_process.go#L207
- **Page:** https://libtmux.org/reference/go/tmux-pane-pipe/

```
tmux.Pane.Pipe(ctx: context.Context, request: PipePaneRequest) -> error
```

Pipe starts, toggles, or stops piping for the receiver's exact linked pane. tmux expands formats and time formats in Command before running it with sh -c. The library's protection for a final semicolon applies only to tmux's outer command parser; it does not quote or neutralize the child shell.

A nil Command, and an explicit empty Command under tmux semantics, stops the
current pipe. Successful return means tmux installed, toggled, or stopped the
pipe; it does not report child-shell success or lifetime. Only stderr produces
a redacted [CommandError]. Accepted pipe changes are not rolled back.
