in reply to Connecting to a remote host

Have a look at Net::SSH to securely connect to and interact with remote hosts. Basically you would have script1 one send on the values concerned through a ssh connection to script2, which would take these values as command line arguments and run with them.

Update: SSH is all nice and cuddly, but I like Abigail-II's last option better (see below) :)

CU
Robartes-