# 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/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_process.go#L207
- **Page:** https://libtmux.org/en/go/latest/reference/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.
