I operate on a shared linux server. It is common practice for team members to open up a few tmux sessions and run some long running commands and then disconnect their ssh session. Eventually the processes they kick off finish, but they may not reconnect for another week or two.
We want to sometimes reset said linux server, but we want to check if there are any running processes/programs/commands still running in any of the tmux sessions that are currently open. Short of attaching to each tmux session and cycling through each window, how do I check which tmux sessions still have running processes/commands, and better yet, see what those commands still being run are?
If there is a way to do this thats multiplexer agnostic (such as it works with both tmux and screen) that would be even better.