On Sun, May 30, 2004 at 11:38:25PM -0500, Dave Higgins wrote: : : I'm working up a shell script (#! /bin/sh) to act as a cgi bridge to a : SuperCard project that does the actual processing. I can get most of : the data from the cgi request by way of printenv, but what I'm missing : is the post arguments. With the Revolution CGI engine, and also in : PERL, you grab the post args by reading STDIN for the number of : characters of $CONTENT_LENGTH. What I need is the shell script : equivalent to this PERL line: : : read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); : : I would image I would have to use setenv to set $buffer to the contents : of what STDIN provides, but the syntax eludes me. There are several examples online. Here's a complete shell script that you can download and modify to your heart's content: http://www.fpx.de/fp/Software/ProcCGI.html -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/