So I have a screen session running on one terminal/machine
I would like to write a script that would attach to that screen session on another machine, but to a new window in that screen.
Does anyone know how I can do this? I feel like it might have somethig to do with screen -x (session name) -p (window number)
…if i put "-" as the window number, it goes to a blank screen, but I want a fresh window.
EDIT: Not really looking for a solution anymore myself, a neat tool called "tmux" replaces screen and makes this all trivial.
Best Answer
Here is the answer:
https://stackoverflow.com/questions/10599769/attach-to-screen-session-with-creating-a-new-screen-window
I was looking for the same thing