This is a useful use-case for tmux - maybe a few blog posts here as well as the WeMux repo?