in reply to Connecting to a remote host

A scalable option would be to have script 2 be wrapped by a forking server. The server listens, and when an incomming connection comes on the socket it forks. Data can be read from the socket, placed on the other end by using Storable, which allows seriallizing in a network safe format. This will allow you to simply pipe data, with arbitrary complexity, to the other script, without relying on other software. This is not a safe method though, and you have to make sure both script 1 and script 2 know what data comes when.

-nuffin
zz zZ Z Z #!perl