#! /bin/sh # Bourne shell script to write the current date/time to a disk file # where Cocoon can read it for use in transformations. This is used # in some pages for embargoing news items or for doing date math. DATE=`which date` CAL=`which cal` AWK=`which awk` HOME=/home/webster CCWEB=/home/httpd/html/cc/datetime.xml cd $HOME echo \ >$CCWEB echo \`$DATE --iso-8601=seconds`\ >>$CCWEB $CAL -3 | $AWK -f cal2xml >>$CCWEB echo \ >>$CCWEB echo Date written to $CCWEB at `date` exit 0