Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • September 26, 2016, 05:30:57 PM
  • Proudly celebrating 10 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 1473 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 2,880
    • View Profile
    • Donate to Member
rePTYr - Re-parent a running process to a new TTY
« on: September 07, 2014, 06:29:26 PM »
This one's going to be fun...
Quote
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,841
    • View Profile
    • Donate to Member
Re: rePTYr - Re-parent a running process to a new TTY
« Reply #1 on: September 08, 2014, 11:01:30 PM »
That sounds pretty handy!  Thanks for sharing :)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,841
    • View Profile
    • Donate to Member
Re: rePTYr - Re-parent a running process to a new TTY
« Reply #2 on: September 08, 2014, 11:09:11 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.