Im not sure if there is any way of doing this...
So, i run several EPICS programs in my machine. EPICS programs usually open interpreters that can be used as a CLI for the program. To make every terminal accessible, even for background processes, i sometimes use procServ to create a telnet server in such a way that you can remotely telnet into the server and gain access to the EPICS terminal. It should work similarly with python interpreters, for example.
Is there a way that, having started a process and forgotten to initialize it with procServ, i can gain access to the interpreter terminal?
I ask this because i have several processes that i sometimes need to access and, being processes started by other users in remote machines, sometimes the only way to gain access to the terminal is to kill the process and restart it in a terminal that i have access.
Expected behavior would be something like:
In terminal 1:
python3
x = 2
In terminal 2:
ps -aux | grep python3
my_user <PID> 4.0 0.1 21272 11104 ? S+ 11:32 0:00 python3
Some_magic_command <PID>
>>>#Im now in a python interpreter
>>>print(x)
2