Can 'screen' grab an existing process and tie itself to it?

Posted by warren on Super User See other posts from Super User or by warren
Published on 2010-04-29T17:21:51Z Indexed on 2010/04/29 17:27 UTC
Read the original article Hit count: 392

Scenario:

  • Started a process that's going to take "a while" to complete outside of screen.
  • Need to leave the terminal / netowrk hiccups
  • Process lost

Would be nice if:

  • Started a process outside of screen
  • Realize error
  • Run screen <magic-goes-here> and it grabs the active process to itself

From the man pages and --help info, I don't see a way this can be done.

Is this possible directly with screen? If not, is it possible to change the owning shell of a process, so that the bash (or other shell of your choosing) instance inside screen can have a command run which will change the parent shell of the initial process to itself from the originator?

© Super User or respective owner

Related posts about screen

Related posts about process-control