# LibTmux.RespawnRequest.RespawnRequest

- **Module:** LibTmux.RespawnRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/RespawnRequest.cs#L18
- **Page:** https://libtmux.org/reference/dotnet/libtmux-respawnrequest-respawnrequest/

```
LibTmux.RespawnRequest.RespawnRequest(command: string?, startDirectory: string?, environment: IReadOnlyDictionary<string, string>?, killExistingProcess: bool)
```

Initializes a respawn request.

## Parameters

- `command` (string?) — The command to run, or null to reuse the original.
- `startDirectory` (string?) — The working directory to respawn in.
- `environment` (IReadOnlyDictionary<string, string>?) — Environment entries set on the respawned target.
- `killExistingProcess` (bool) — Whether a running process is killed first.
