# types.RunOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/types.ts#L599
- **Page:** https://libtmux.org/en/ts/latest/reference/types-runoptions/

How long [`Server.run`](/en/ts/latest/reference/server-server-run/) lets a program run, and how to stop it early.

## Members

### Other members

- [`separateStderr`](/en/ts/latest/reference/types-runoptions-separatestderr/) (property): Send the program's stderr to a private file rather than the terminal, and return it as `stderr`, so `output` holds stdout alone. stderr is then no terminal, which some programs notice. Like `input`, it needs the tmux server on this machine.
- [`signal`](/en/ts/latest/reference/types-runoptions-signal/) (property): Stop the program when this fires; the call rejects with {@link TmuxTransportError} of kind `cancelled`, the signal's reason as its `cause`. Its `delivery` is `written` once the program had started, which may have done part of its work, and as for {@link SpawnOptions.signal} before.
- [`timeoutMs`](/en/ts/latest/reference/types-runoptions-timeoutms/) (property): Stop the program after this many milliseconds and report what it printed with `timedOut` set. A positive timer-safe integer; no limit by default.
