# server.Server.spawn_shell

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L1292
- **Page:** https://libtmux.org/reference/rs/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.
