Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start gnu screen with existing running program [closed]

Tags:

gnu-screen

Say I forget to run screen at the beginning of login, I've started up a program like emacs, have many files open, now I want to attach this to a session of screen. Is there any way to do this? Or do I have to exit emacs, run screen, then run emacs again, opening up my work from the beginning?

Thanks for your help.

like image 392
Alan Avatar asked Nov 13 '22 22:11

Alan


2 Answers

This post from ServerFault might be useful: https://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process

like image 167
Abe Voelker Avatar answered Jan 16 '23 18:01

Abe Voelker


reptyr works if you're on linux

like image 40
Brad Langhorst Avatar answered Jan 16 '23 19:01

Brad Langhorst