Server.IsAlive
IsAlive reports whether a tmux server answers on the configured socket. Only an absent server reports false without an error: a socket that exists but cannot be reached, such as one the process may not read, is a question that could not be answered and is returned as an error. Use Server.CheckAlive where an absent server is itself the failure.
Source and package
- Qualified name
-
tmux.Server. Is Alive - Package
- tmux
- Declared in
Server- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server.go
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScriptRustJavaC#C++Swift Kotlin Scala OCaml F# Clojure
-
- Parameters
tmux command#
The tmux commands behind IsAlive.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss IsAlive.
In other ports#
Whether the server is running
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Explicit snapshot acquisition returns observed data or a typed failure; operational failures are not converted to false. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.