Is there any known
tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a session exists with
$ tmux has-session -t SomeSession
the user is, unless the tmux server is already running, presented with the error
failed to connect to server
Therefore, I want to check beforehand if the server is currently running. If it is, check for sessions et cetera. Is there any way to silence this without piping to /dev/null?