A quick and dirty solution on *nix would be to use a FIFO - create a FIFO using mknod, open it as a > filehandle in one script and a read filehandle from the other. Inelegant but easy :-)
Comment on Re: retrieve data from another script not from stdin