# libtmux::Pane::pipe_to

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L848
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
