#!/bin/csh
setenv TZ PST8PDT
set hour = `date +%H`
if ($hour < 7) goto gonzo
if ($hour > 22) goto gonzo

cd /home/rawww/html/hurl
set code = `date -u +%y%m%d%H | ./codemaker`
set code = `date -u +%d`$code`date -u +%H`
#(echo "The Seattle hour is $hour";./simcity.cgi) |& /usr/ucb/Mail -s "Nihon Roll" black@real.com
echo $code
echo -n $code > BEEBCODE.txt
exit (0)

gonzo:
#echo  "The Seattle hour is $hour" |/usr/ucb/Mail -s "Nihon No-Roll" black@real.com
exit (0)

