3 ###################################################
5 # Edit the following lines
9 tempdir=$"/usr/local/httpd/spider/client/"
10 clustercall=$"PA4AB-15"
14 # End of configurable part
16 ####################################################
19 echo "Content-type: text/html"
22 echo "<TITLE>Spider DX Cluster</TITLE>"
24 echo '<BODY BGCOLOR="#d8d0c8">'
27 pattern=$(echo ${QUERY_STRING} | sed -e s,'call=',, | sed -e s/"&passwd="/" "/)
28 call=$(echo $pattern | cut -d' ' -f1)
29 passwd=$(echo $pattern | cut -s -d' ' -f2)
32 if [ ${call} = ""] ; then
35 echo "<STRONG><FONT SIZE=5>Welcome to the Spider DX Cluster</FONT></STRONG>"
36 echo "<STRONG><FONT SIZE=5>"
38 echo "</FONT></STRONG>"
39 echo "<P> </P>"
40 echo '<FORM action="/cgi-bin/spider.cgi" method=get>'
41 echo "<STRONG>Your Call Please: </STRONG> "
42 echo '<INPUT name="call" size=10> '
43 echo '<INPUT type=submit value="Click here to Login">'
48 echo "<HTML>" > ${tempfile}${call}.html
49 echo "<HEAD>" >> ${tempfile}${call}.html
50 echo "</HEAD>" >> ${tempfile}${call}.html
51 echo "<BODY>" >> ${tempfile}${call}.html
52 echo '<APPLET code="spiderclient.class" width=800 height=130>' >> ${tempdir}${call}.html
53 echo '<PARAM NAME="CALL" VALUE=' >> ${tempdir}${call}.html
54 echo ${call} >> ${tempdir}${call}.html
55 echo ">" >> ${tempdir}${call}.html
56 echo ">" >> ${tempdir}${call}.html
57 echo '<PARAM NAME="HOSTNAME" VALUE="' >> ${tempdir}${call}.html
58 echo ${hostname} >> ${tempdir}${call}.html
59 echo '">' >> ${tempdir}${call}.html
60 echo '<PARAM NAME="PORT" VALUE="' >> ${tempdir}${call}.html
61 echo ${portnumber} >> ${tempdir}${call}.html
62 echo '">' >> ${tempdir}${call}.html
63 echo "</APPLET>" >> ${tempdir}${call}.html
64 echo "</BODY>" >> ${tempdir}${call}.html
65 echo "</HTML>" >> ${tempdir}${call}.html
66 GOTO='<meta http-equiv="refresh"content="0;URL=http://'${hostname}'/client/'
75 # all *.html tempory files remove older than 10 min
78 files=$(find *.html -mmin +10)