# io.github.libtmux.Pane.Pane.pipeTo

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Pane.java#L849
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane-pipeto/

```
io.github.libtmux.Pane.Pane.pipeTo(shellCommand: String) -> void
```

Sends everything this pane prints to a shell command, until {@link #stopPiping}.

A second call replaces the first: tmux keeps one pipe per pane, not a list.

tmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does
not prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you
mean it to be expanded.

## Parameters

- `shellCommand` (String): run by the user's shell, so it may redirect and pipe
