http://qs1969.pair.com?node_id=419191

SmilingBuddha has asked for the wisdom of the Perl Monks concerning the following question:

Dear wise monks,

I have a unix shell which will launch an interacive tool (with its own interactive shell/prompt) and another unix shell which will launch a Tcl shell (prompt). This means that there are 2 processes running on 2 unix shells.
What I want is that there should be a socket communication between these 2 processes, with the Tcl shell as the master of the two. Any command on the Tcl shell will be checked for error and then executed either on its own shell or on the other (tool) shell over the socket link.
Can you please provide me pointers as to how I can achieve the above (if possible, optimally)?
---
Do unto others as you would expect others to do unto you - The Golden rule of Life!