#!/bin/sh # this is a script for processing a form to examine results # the data from the form is taken from stdin 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 # special set up because HOSTTYPE is not set on apache at exeter if test x"$SERVER_NAME" = x"www.dcs.ex.ac.uk"; then HOSTTYPE=sun4; export HOSTTYPE fi #echo $HOSTTYPE is HOSTTYPE and :$SERVER_NAME: is SERVER_NAME RAW_FORM=`cat` echo "" echo '" echo "" # this sets environment variables according to the INPUT tags on the form NEW_FORM=`echo "$RAW_FORM" | sed 's/\&/;/g'` #echo NEW_FORM is $NEW_FORM eval "$NEW_FORM" #echo "
Environment is:";set;echo "
" ARG4= if test x"$EVR_Text_also" = xNo; then ARG4=N fi ./stray_evaluation_common "$EVR_Cache_lookahead" "$EVR_Cache_size" N $ARG4 2>&1