topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 10:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: rePTYr - Re-parent a running process to a new TTY  (Read 3659 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
rePTYr - Re-parent a running process to a new TTY
« on: September 07, 2014, 06:29 PM »
This one's going to be fun...
reptyr - A tool for "re-ptying" programs.
reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don't want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.



from NixCraft Facebook page

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: rePTYr - Re-parent a running process to a new TTY
« Reply #1 on: September 08, 2014, 11:01 PM »
That sounds pretty handy!  Thanks for sharing :)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: rePTYr - Re-parent a running process to a new TTY
« Reply #2 on: September 08, 2014, 11:09 PM »
Just tried it with some success.

Remember those times when somehow you can't get back to your X session, but there's something running in a terminal you'd like to interact with or see?  Looks like this could work -- a quick test suggests it might work sometimes.

On a side-note, AFAICT, this is Linux-only.