#!/bin/sh # this is a script for processing a form to run one of the cache tests # the data from the form is taken from stdin # NB CURRENTLY THIS SCRIPT CAN ONLY BE RUN ONCE AT A TIME, BECAUSE OF USE OF FIXED TEMPORARY FILES PATH=.:/usr/ucb:/opt/jdk1.2.1/bin:/home/pjbrown/bin:/usr/java/bin:/usr/bin:/usr/local/bin:/bin:/usr/X11R6/bin:/usr/local/jdk/bin:/usr/X11R6/bin:/usr/local/jdk/bin:$PATH export PATH echo "Content-type: text/html" echo # redirect stderr to stdout exec 2>&1 echo '
Environment is:";set;echo "" ME=/home/pjbrown DIR=$ME/tourist_database/cache cd $DIR # run test and use sed script to make HTML comments visible too if test x"$COMPARE_RES" = xboth; then COMPARE_RES=false AGAIN=true fi CACHE_FILE_TAG=web # to prevent web-created cache files clashing with others export CACHE_FILE_TAG export COMPARE_RES COMPARE_CACHE_SIZE COMPARE_AHEAD CCS=$COMPARE_CACHE_SIZE if test x"$CCS" = x; then CCS=v fi echo '
' ./${COMPARE_START}.stray 2>&1 | sed 's/&1 | sed 's/Textual reports follow." $ME/bin/cat_body $ME/public_html/evaluation/t_sty_CM20_${COMPARE_AHEAD}_${CCS}_${COMPARE_START}.html else echo "
Textual report follows." fi LIB=CM if test x"$COMPARE_RES" = xtrue; then LIB=lib fi $ME/bin/cat_body $ME/public_html/evaluation/t_sty_${LIB}20_${COMPARE_AHEAD}_${CCS}_${COMPARE_START}.html echo ""