#!/bin/csh
 
# These three lines are installation dependant:
setenv UTILS /usr/local/etc/httpd/htdocs/garage/WaveGraph/waveserver
setenv IMAGES /usr/tmp
source /export/home1/wave604/wave/bin/wvsetup
 
# Add UTILS directory to the PV-WAVE procedure path
setenv WAVE_PATH ${UTILS}:${WAVE_PATH}
 
# Uncomment these lines for debug purposes:
#
# if ( -e ${UTILS}/waveserver.log ) then
#   rm ${UTILS}/waveserver.log
# endif
#
# touch ${UTILS}/waveserver.log
# echo `date` >> ${UTILS}/waveserver.log
#
# wave ${UTILS}/waveserver.com >& ${UTILS}/waveserver.log
 
wave ${UTILS}/waveserver.com >& /dev/null
 
# Return path to where images files will be placed
        echo Content-type: text/plain
        echo ""
        echo http://vrml.boulder.vni.com/garage/WaveGraph/waveserver/images/
exit 
