# LibTmux::Pane#pipe

- **Module:** LibTmux::Pane#
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c6d9d21771828e583692ca899ed817f9640d6a55/gems/libtmux/lib/libtmux/operations.rb#L371
- **Page:** https://libtmux.org/en/ruby/latest/reference/libtmux-pane-pipe/

```
LibTmux::Pane#pipe(shell_command: ::String? = nil, input: bool = nil, output: bool = nil, only_if_closed: bool = nil, timeout: ::Numeric = nil, cancel: untyped = nil) -> ::LibTmux::CommandResult
```

The shell command and its format expansion are explicitly requested here.
only_if_closed follows tmux -o: an existing pipe is closed, not retained.

Behavior contract: Pane pipes.
