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 make the below workflow possible:
- put job in background (
- get its pid (
jobs -p %+to get its
- open a
tmuxsession, attach to it and use it for the following steps
reptyrto grab the job (
<pid>to shell's job control (is this possible at all?)
- stop the job (
I can do everything except the last two steps. Stopping the job with
^Z doesn't work because the process isn't in the shell's job list.
My research indicates that it isn't possible to own (reverse of
disown) a pid but hopefully I am wrong...