** Start of listing of h2-sh.cgi ** #! /bin/sh echo 'Content-type: text/plain' echo echo 'The query string is "'$QUERY_STRING'" currently.' echo res1=`echo $QUERY_STRING | grep 'textqqqq' | wc -l` str='date' qt="'" if test $res1 != `echo $QUERY_STRING | grep $str | wc -l` then echo "The string $qt$str$qt occurred, so here it is:" date else echo "You didn't ask for $qt$str$qt this time." fi echo str='name' qt="'" if test $res1 != `echo $QUERY_STRING | grep $str | wc -l` then echo "The string $qt$str$qt occurred, so here it is:" echo "My name is Robert Elton Maas." else echo "You didn't ask for $qt$str$qt this time." fi ** End of listing of h2-sh.cgi ** Here is the directory entry for that file: -rwx------ 1 rem user 601 May 18 2005 h2-sh.cgi ^ Note user execute permission needed for all CGI scripts.