# server.Server.spawn_shell

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L1540
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-spawn_shell/

```
server.Server.spawn_shell(self, command: impl Into<OsString>) -> Result<(), Error>
```

Run a shell command in the background and return immediately.

Success means tmux accepted the command, not that it finished or
succeeded. Nothing is captured.

# Errors

Returns an error when tmux refuses to enqueue the command.
