#!/bin/bash # This script should be called several times each day from cron jobs # as it updates static web pages that incorporate content from # databases, RSS feeds, etc. # # Current crontab entries that call this file: # # mgk25@cron-serv0: # MAILTO=pagemaster@cl.cam.ac.uk # 3 4,10,12,14,16,18 * * * /anfs/www/VH-cl/scripts/regular-updates # # (source: ~mgk25/w/crontab/cron-serv0) # # Should ideally be called by wwwupdate@cron-serv* instead (i.e. not tied # to a personal account), but calling from a pseudo-user seems not to work, # for reasons yet unknown. # LANG=en_GB.UTF-8 # # update database-generated content /anfs/www/VH-cl/scripts/people.pl /anfs/www/html/people/index-b.html /anfs/www/VH-cl/scripts/phds.pl /anfs/www/html/local/phd/list/index-b.html # update pages with RSS feeds /anfs/www/tools/bin/ucampas -q /anfs/www/html/index-b.html /anfs/www/html/local/sys/index-b.html