Skip to main content

Questions tagged [reptyr]

reptyr is a command-line tool to reparent a running program to a new terminal

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

how to put an existing process into an interactive shell's foreground [duplicate]

Say I started a long running process with nohup. As predicted, I close the current shell session. I open a new one and then I would like to add the still running process to the foreground (or to the ...
Sebastian Carlos's user avatar
0 votes
2 answers
318 views

How to replace program running in graphical terminal with another program?

Lets say I have top or some ncurses program running in a graphical terminal, and from outside this terminal I'd like to execute a command, that would replace top with another program of my choosing. ...
Alex Stragies's user avatar
8 votes
1 answer
8k views

Is there a way to reptyr a make process or any process with subprocesses?

Consider the following Makefile. all: yes If I run make and suspend using Ctrl-Z, and then start screen or tmux, followed by an attempt to reptyr, I get the following error. $ reptyr 5328 [-] ...
merlin2011's user avatar
  • 3,955
7 votes
1 answer
2k views

Is it possible to add a process to the job list in bash (e.g. to reverse "disown")?

If I disown a job in bash and change my mind, can I undo it somehow ? If so, taking it further, is it possible to bring an arbitrary process under job control (an acceptable restriction would be that ...
starfry's user avatar
  • 7,500
2 votes
1 answer
1k views

Attach tmux to pty after reptyr?

I've got reptyr to "open a new pty" by doing: reptyr -L 7969 where 7969 is the PID of rabbitmq-server. The output of reptyr is Opened a new pty: /dev/pts/25 but how do I attach tmux to that pty? ...
user2899136's user avatar
3 votes
0 answers
400 views

Screen reptyring screen

Having recently discovered reptyr, my first action was to do everything I could to break it. This included reptyring screen into a screen session as follows: $ screen My zshrc cats some stuff here. $...
astex's user avatar
  • 131