# Server.pipe(_:to:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Navigation.swift#L362
- **Page:** https://libtmux.org/en/swift/latest/reference/server-pipe(_-to-)/

```
Server.pipe(_:to:)(pane: Pane, to: String?) -> ()
```

Copies everything a pane outputs to a shell command, or stops doing so when `command` is omitted.

## Raises

- `TmuxError`
