# window_copy_pipe_run

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5511
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_pipe_run/

```c
static void * window_copy_pipe_run(struct window_mode_entry *wme, struct session *s, const char *cmd, size_t *len)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `s` (`struct session *`)
- `cmd` (`const char *`)
- `len` (`size_t *`)

## Called by

- [`window_copy_copy_pipe`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5547)
- [`window_copy_pipe`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5536)

## Calls

- [`job_run`](/en/tmux/3.7c/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5521)
- [`options_get_string`](/en/tmux/3.7c/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5519)
- [`window_copy_get_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_get_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5517)

## Other function references

- [`job_get_event`](/en/tmux/3.7c/reference/c-function-job_get_event/) (function)

## Referenced declarations

- [`global_options`](/en/tmux/3.7c/reference/c-variable-global_options/) (attribute)
- [`JOB_NOWAIT`](/en/tmux/3.7c/reference/c-define-tmux-h-job_nowait/) (constant)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
