# Libtmux.Spawn

- **Package:** libtmux
- **Language:** OCaml
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L739
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-spawn/

```ocaml
module Spawn
```

A process description with explicit argv or shell semantics, working directory and environment. Describing a process performs no I/O.

## Members

### Other members

- [`command`](/en/ocaml/latest/reference/libtmux-spawn-command/) (enum)
- [`default`](/en/ocaml/latest/reference/libtmux-spawn-default/) (constant)
- [`make`](/en/ocaml/latest/reference/libtmux-spawn-make/) (function): Describe a program without I/O. `Exec` preserves argv; `Shell` explicitly requests the daemon's configured shell. `cwd` must be absolute. Validation occurs at admission. With no arguments, `Exec` uses a fixed `/bin/sh` trampoline because tmux treats a single argument as shell code. `Default` follows tmux defaults on creation and reuses the previous command on respawn.
- [`t`](/en/ocaml/latest/reference/libtmux-spawn-t/) (struct)
