I came across this program recently and used it to solve an interesting problem, thought of sharing it just as an Idea
Linux screen, needs a yum command to install, open-source
We have a particular jenkins build that needs user inputs that cant be provided as parameters at the beginning, and we have no control over the processes that jenkins will spawn to perform the build, If jenkins created a screen with the command: screen -m -S aa -t aa -d before it starts the build, we can then later login the server
[root@server ~]# screen -ls
There are screens on:
29076.pts-10.server (Detached)
28433.pts-5.server (Attached)
28544.aa (Detached)
28241.pts-1.server (Attached)
4 Sockets in /var/run/screen/S-root.
we can login to the screen where our jenkins build is running to provide the inputs for jenkins to continue the build
screen -r 28544.aa
Looks like, it s a pretty popular tool that supports many other interesting features like remote collaboration with screen sharing/ sessions etc, the following links are useful to get me started: