#! /bin/sh # ################################################### # # Edit the following lines # # portnumber=$"1407" tempdir=$"/usr/local/httpd/spider/client/" clustercall=$"PA4AB-15" # # # # End of configurable part # #################################################### hostname=$"localhost" echo "Content-type: text/html" echo echo "" echo "Spider DX Cluster" echo "" echo '' echo "
"

pattern=$(echo ${QUERY_STRING} | sed -e s,'call=',, | sed -e s/"&passwd="/" "/)
call=$(echo $pattern | cut -d' ' -f1)
passwd=$(echo $pattern | cut -s -d' ' -f2)


if [ ${call} = ""]  ; then
  echo "
" echo "
" echo "Welcome to the Spider DX Cluster" echo "" echo ${clustercall} echo "" echo "

 

" echo '
' echo "Your Call Please: " echo ' ' echo '' echo "
" echo "
" else echo "" > ${tempfile}${call}.html echo "" >> ${tempfile}${call}.html echo "" >> ${tempfile}${call}.html echo "" >> ${tempfile}${call}.html echo '' >> ${tempdir}${call}.html echo '' >> ${tempdir}${call}.html echo '' >> ${tempdir}${call}.html echo "" >> ${tempdir}${call}.html echo "" >> ${tempdir}${call}.html echo "" >> ${tempdir}${call}.html GOTO='' echo ${GOTO} fi echo "
" echo "" # all *.html tempory files remove older than 10 min # cd ${tempdir} files=$(find *.html -mmin +10) rm ${files}