# Libtmux.Operations.respawn_pane

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1349
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-respawn_pane/

```
val respawn_pane :
  ?kill_running:bool -> Pane.target -> Spawn.t -> unit Command.t
```

Start the supplied command in the existing pane. A running process causes failure unless `kill_running:true` explicitly replaces it. The pane ID remains unchanged.

## Parameters

- `kill_running?` (`bool`)
- `arg1` (`Pane.target`)
- `arg2` (`Spawn.t`)
