# libtmux::Pane::pipe_to

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L676
- **Page:** https://libtmux.org/reference/cxx/libtmux-pane-pipe_to/

```
libtmux::Pane::pipe_to(command: std::string_view) -> expected< void, CommandFailure >
```

Copy everything this pane prints to a shell command, until told to stop.

The command runs on the tmux server's machine with the pane's output on its standard input.

Starting a second pipe replaces the first: tmux keeps one per pane, so there is nothing to close and nothing to leak.
