Sometimes I forget to run a program under a screen session and can't stop it in the middle, and I know it's going to take long.
Is there a way to screen an already running process without restarting it?
|
Sometimes I forget to run a program under a screen session and can't stop it in the middle, and I know it's going to take long. Is there a way to screen an already running process without restarting it? | ||||
|
feedback
|
|
Found a duplicate In ServerFault. Another solution not found in that post is using retty after starting a screen session. | |||||||||||
feedback
|
|
Found this answer on serverfault from earl:
And this one from the same question from Rob Wells:
| ||||
|
feedback
|
|
Have a look at reptyr, which does exactly that. The github page has all the information.
| |||
|
feedback
|