in reply to sending data between CGI scripts

CGI scripts aren't always running. If you want to send data from one CGI script to another, you will have to call the CGI script with the appropriate parameters. CGI scripts are only run when requested. They aren't daemons or services.

Now, if you are wondering how to send data from one script to another, not running as CGIs, you have it about right above.

You may want to specify the full path in your open command, though.

J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org/