I apologize if I am not able put my word across.
Let me try again. Infact, I got to boil the concept down and got to implement it in perl.
Premises: There are two machines A and B connected in network. I am talking about issue related to Network Management. For the time being, I will stick to telnet.
What normally happens when A telnets to B:-
In the command line we need to login and type password. After authentication, A is logged in to B and has access to shell of B.
What I need :-
From A, I telnet to B through script, and in response B should pop it's window or screen in Machine A. What exactly i mean is, B should spawn a thread which create a shell window in machine A. In effect, if I switch off machine B, the shell window of machine B in A should, disappear.
Till now what I have analysed is, this has something to do with XServer or a XWindow. I am clueless about how to implement it in perl.