#!/bin/sh -x #FILENAME: papiani-new-gbis.query 2/JUN/95 ########## SET UP VARIABLES ############################### WWW_ROOT=/netlib/parkbench/gbis HTTP_WWW_ROOT=http://www.netlib.org/parkbench/gbis GENESIS_DIRS=/pcsg/ftp/pub/benchmark_results/ PLOT_ROOT=/pcsg/ftp/pub/benchmark_results FTP=ftp://cs.utk.edu/pub/benchmark_results TAIL=/usr/ucb/tail CGI=/usr/local/netlib/bin/cgi-bin/gbis HTTP_CGI=http://www.netlib.org/cgi-bin/gbis PSTOGIF=$WWW_ROOT/bin/pstogif PSTOXBM=$WWW_ROOT/bin/pstoxbm GNUPLOT=/local/gnu/bin/gnuplot LD_LIBRARY_PATH=/usr/local/X11R5/lib ; export LD_LIBRARY_PATH ######## The following paths are set relative to those above HOME=$WWW_ROOT ; export HOME TEMP=$WWW_ROOT/tmp HTTP_TEMP=$HTTP_WWW_ROOT/tmp ICONS=$HTTP_WWW_ROOT/gif_icons GBIS_TOP=$HTTP_WWW_ROOT/html ##########END VARIABLES #################################### ERRORFILE=$TEMP/gbis.query.err exec 2>$ERRORFILE #above dir contains sub-directories named after each genesis benchmark # # Set path to just /bin to reduce likelyhood of hacking. # PATH='/bin' # Write reply header. # echo "Content-type: text/html" echo # Print all environment variables if in debug mode # # process query string. # # o sed removes any ' that would upset quoted assignment # # o awk ensures that # - all variables passed have legal names # - special characters are not interpreted by sh # eval `echo $PREFIX$QUERY_STRING | sed -e 's/'"'"'/%27/g' | sed -e s/'+'/'_'/ | \ awk 'BEGIN{RS="&";FS="="} $1~/^[a-zA-Z][a-zA-Z0-9_]*$/ \ {printf "if [ $QS_%s ]; then QS_%s=$QS_%s%c, %s%c; else QS_%s=%c%s%c; fi; \n", \ $1,$1,$1,39,$2,39,$1,39,$2,39}' ` # # #create name of benchmark directory from benchmark selected on the form QS_BENCHMARK=`echo $QS_BENCHMARK|sed 's/%28//'|sed 's/%29//'|sed 's/Genesis//'|sed 's/Parkbench//'|sed 's/NAS//'|sed 's/2.3//'|sed 's/+/ /g'|sed 's/_/ /g'|sed 's/%2F//g'|sed 's/PDE1//'|sed 's/EMBARRASSINGLY PARALLEL/EP/'|sed 's/DENSE MATRIX MULTIPLY/DMM/'|sed 's/DENSE LU FACTORISATION/LU/'|sed 's/CONJUGATE GRADIENT/CG/'|sed 's/LARGE INTEGER SORT/LIS/'|sed 's/1-D FFT/1DFFT/'|sed 's/3-D FFT/3DFFT/'|sed 's/QR DECOMPOSITION/QR/'|sed 's/LU SIMULATED CFD/LU_CFD/'|sed 's/SP SIMULATED CFD/SP_CFD/'|sed 's/BT SIMULATED CFD/BT_CFD/'` BENCHMARK_DIR=$GENESIS_DIRS$QS_BENCHMARK #echo benchmark dir is $BENCHMARK_DIR cat << HTML