Tag Archives: Linux


So I was working on some stuff in a terminal window and needed to close the SSH connection I was attached to. I hate to just kill off a process only to have to restart all over again so I started to wonder if there was a way to move this process to a screen terminal instead, reptyr to the rescue!

reptyr is a way to reparent a running program to a new terminal. So I opened a new screen session typed in the command reptyr and the process ID. Voila I now have the old process running as a new process in the screen session.

In order to install reptyr in Ubuntu simply do apt-get install reptyr.

Enjoy 🙂