nelhage/reptyr
View on GitHub ↗ ★ 6,362 C
Reparent a running program to a new terminal
20 mentions on Hacker News by 18 people: 7 stories, 13 comments · first 2011-01-22 · latest 2025-12-11
20082026
-
…Windows, but if you're wondering if there's a way to do this on Linux, there is: https://strace.io/ https://github.com/nelhage/reptyr https://github.com/crigler/dtach https://github.com/jerome-pouiller/reredirect…
comment by ranger_danger · 2025-12-11 · in How can I read the standard output of an already-running process? -
…fork from the server and use this forked process right away. I used similar logic as in reptyr ( https://github.com/nelhage/reptyr ) to redirect the PTY. This worked quite well. https://github.com/albertz/python-preloaded
comment by albertzeyer · 2024-06-21 · in CRIU, a project to implement checkpoint/restore functionality for Linux -
like reptyr[1] or retty[2] does? [1] https://github.com/nelhage/reptyr [2] https://github.com/lkundrak/retty
comment by bandie91 · 2024-06-13 · in Show HN: Shpool, a Lightweight Tmux Alternative -
…bring processes to the foreground once you left the session. there are hacky ways to do it though: http://github.com/nelhage/reptyr http://github.com/jerome-pouiller/reredirect https://github.com/lkundrak/retty/
comment by bandie91 · 2024-05-25 · in Tmux is worse-is-better -
…mobility, and i get a much nicer experience out of two tools: - mosh: https://mosh.org/ - reptyr: https://github.com/nelhage/reptyr using mosh means i don't get SIGHUP, and if i lose my local display, i can open another mosh, reptr my old…
comment by geocar · 2022-04-03 · in GNU ed ate my homework -
…print the result. Another good example of using this to inject code for non-malicious purposes is https://github.com/nelhage/reptyr , which lets you tell another process to switch terminals (e.g., move it into a screen/tmux session). - You…
comment by geofft · 2020-01-01 · in Show HN: dlinject.py – Inject a .so into a running Linux process, without ptrace -
You can indeed reattach a session into screen/tmux:) https://github.com/nelhage/reptyr Also consider using ssh config to make your default command create or attach a tmux session.
comment by yjftsjthsd-h · 2018-12-28 · in SSH Examples, Tips and Tunnels -
Is there a comparison of reTTY with reptyr ( https://github.com/nelhage/reptyr )? reptyr claims to work with less while reTTY does not.
comment by achernya · 2015-12-22 · in Ispy: A python script for monitoring the output of other terminals and processes -
I don't know about "best", but there's RePTYr. https://github.com/nelhage/reptyr
comment by zero_by_divide · 2015-10-02 · in Ask HN: The best way to move an existing long-running process between terminals? -
There's this for attaching a running program to your terminal when it is not started in screen: https://github.com/nelhage/reptyr
comment by ordinary · 2014-12-07 · in Running bash commands in the background properly -
…and you do something like, say, open vim and then realize you haven't opened it in tmux, check out https://github.com/nelhage/reptyr - it lets you do things like ctrl-z to background vim, start tmux, then steal the vim process into your…
comment by mbillie1 · 2014-02-21 · in Tmux 1.9 released -
reptyr: https://github.com/nelhage/reptyr is Linux specific & involves a fairly gruesome abuse of ptrace() to attach a running process to your current pty. It won't put the process in the shell jobs list though. There's also retty:…
comment by pja · 2011-11-20 · in What's the one Linux command you wish you knew years ago? -
…happens when I try to take control of an ssh session. Ubuntu 10.04.1, built with met% git clone https://github.com/nelhage/reptyr.git met% cd reptyr/ met% make
comment by Estragon · 2011-01-22 · in Reptyr: move an already-running process into screen (better than screenify)