# pane.Pane.pipe

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L861
- **Page:** https://libtmux.org/reference/rs/pane-pane-pipe/

```
pane.Pane.pipe(self, command: Option<impl Into<OsString>>) -> Result<(), Error>
```

Pipe the pane's output to a shell command.

Passing `None` stops any pipe already running for this pane.

# Errors

Returns an error when tmux refuses the command.
