#!/bin/sh

#=======================================================
#
# These four definitions specify the binary paths for
# nova and clyde and the writable document and log root
# for the web server.
#
#=======================================================
#
clyde_bin=/usr/local/servers/npac_http/tools/stats
nova_bin=/project/C420/s/npac_http/tools/stats
docroot=/e/p/C420/p/html
logroot=/e/p/C067

echo '['`date`'] Starting: run.sh'

#   Run script on clyde to build a statistics file wwwstat.html
#
$clyde_bin/wwwstat.sh

#
#   Run a script on nova to build the graphics.
#
rsh nova.npac.syr.edu $nova_bin/gwstat.sh

#
#   Run a script to update the monthly graphs for each year.
#   only really need to do this once each month.
#
if (test `date +%d` = "11") then
  echo "1st of the month"
  $clyde_bin/run_month.sh
fi

#
#   Finish
#
echo '['`date`'] Finished: run.sh'
exit
