#!/bin/csh -f # # The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is browser-buster. # # The Initial Developer of the Original Code is Netscape Comm. # Inc. Portions created by Netscape are # Copyright (C) Netscape. All # Rights Reserved. # # Contributor(s): # Chris Hofmann # # usage rotate_pages30 30 28 [directory/] #list_pages #list_other_pages set pull_time=$1 #when a new page is requested from the browser set rotate_time=$2 #when the new page is generated if ($#argv == 3) then set test_directory=$3 else set test_directory="" endif set test_url=test_url_"$pull_time".html foreach url ( `ls -1 ${test_directory}url.* | sort -n -t . +1` ) #set urllink="" #set urllink={$url}.html #rm $urllink #echo '' > $urllink #echo '' >> $urllink #echo '' >> $urllink #echo '' >> $urllink #echo '' >> $urllink #cat $url >> $urllink #echo '' >> $urllink #echo '' >> $urllink #echo '' >> $urllink date +"%b %e %T" > timestamp.txt # echo '"Content-type: text/html"' > $test_url echo '' > $test_url echo '' >> $test_url echo '' >> $test_url echo 'page loader test page '$url' ' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url #echo '' >> $test_url # echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url echo '' >> $test_url # echo '' >> $test_url #cp $page test_page.html sleep $rotate_time end