in reply to Connecting to a remote host
system ssh => 'user@remote.host', "script '$data'";
Or you could have script2 listen to a socket, use inetd, use RPC, use SOAP, send the data by mail and use procmail on the remote end, use NFS, put script2 in a boot script and have script1 powercycle the remote host.
The possibilities are endless, and largely depend on your infrastructure. It's also a very non-Perl issue.
Abigail
|
|---|