# Server.runHook(_:in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Options.swift#L271
- **Page:** https://libtmux.org/en/swift/latest/reference/server-runhook(_-in-)/

```
Server.runHook(_:in:)(name: String, in: HookScope) -> TmuxReply
```

Runs a hook's commands now, without waiting for what would trigger it.

Running a name nothing is bound to succeeds and does nothing.

## Raises

- `TmuxError`
