# Server.runHook(_:in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L252
- **Page:** https://libtmux.org/reference/swift/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`
