#!/bin/csh -f # run as cronjob every night just after midnight to store # our daily and monthly schedules from dtcm onto the www.inscoe.org # web site # # uses pushfile expect script to push the files through the firewall # # written by Kevin P. Inscoe (kevin@inscoe.org) 11/3/98 # # set globals set daily = "/tmp/today.html" set dfile = `/bin/basename $daily` set ddir = `/bin/dirname $daily` set monthly = "/tmp/month.txt" set mfile = `/bin/basename $monthly` set mdir = `/bin/dirname $monthly` # get daily schedule and write to file /bin/rm -f $daily /usr/dt/bin/dtcm_lookup -view day > $daily cd $ddir ~kinscoe/scripts/pushfile $dfile /bin/rm -f $daily # get and format monthly schedule /bin/rm -f $monthly /usr/dt/bin/dtcm_lookup -view month > $monthly cd $mdir ~kinscoe/scripts/pushfile $mfile /bin/rm -f $monthly # cleanup