I have created a shared socket for tmux to use.
tmux -S /tmp/pair
Then I have a 2nd user attach to the socket.
tmux -S /tmp/pair attach
How do I tell from the first session, the one that created the socket, tell that the 2nd user is connected?
I’m guessing it would be something from the lsof command.
You can use the
list-clientscommand. By itself, it displays all clients connected to the server. If you specify a session with the-toption, it shows clients attached to the named session.