#!/usr/bin/sh # # dual-boot.cgi (use perm 0705) # # This script outputs(in html) and increments the count in the filenamed # vrcount and records the count, date, HTTP_USER_AGENT, and REMOTE_ADDR in # a "::" separated file named ./vrlog # #printf "Content-type: text/html\n\n123" i=`cat /users/cuesta/kvoelker/www/cgi-bin/counter/cis122/dual-boot.count` #i=`cat dual-boot.count` mtime=`ls -l /users/cuesta/kvoelker/www/cis122/Webpage/dual-boot-body.html | cut -c42-53` i=`expr $i + 1` echo $i > /users/cuesta/kvoelker/www/cgi-bin/counter/cis122/dual-boot.count #echo $i > dual-boot.count #echo here1 #exit 0 echo "`date '+%Y%j%t%m%t%d%t%H%t%M%t%S%t%a` $REMOTE_ADDR $HTTP_REFERER $HTTP_USER_AGENT $QUERY_STRING $REQUEST_METHOD $CONTENT_LENGTH $i" >> /users/cuesta/kvoelker/www/cgi-bin/counter/cis122/dual-boot.log echo "Content-type: text/html