Questions tagged [reptyr]

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

6 questions
7
votes
1 answer

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 [-] Process 5329 (yes) shares 5328's process group.…
merlin2011
  • 3,855
  • 5
  • 27
  • 36
7
votes
1 answer

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 I own the process) ? And, finally, would this…
starfry
  • 7,302
  • 6
  • 47
  • 69
3
votes
0 answers

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. $ reptyr $(pgrep screen) I thought that this…
astex
  • 131
  • 4
2
votes
1 answer

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? Thanks in advance :)
user2899136
  • 121
  • 3
0
votes
0 answers

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

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 background of the current shell's job control,…
Sebastian Carlos
  • 146
  • 2
  • 12
0
votes
2 answers

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. I imagine there to be a generic approach to this,…
Alex Stragies
  • 5,857
  • 2
  • 32
  • 56