#!/bin/sh # Quick and dirty kludge to do all that is needed... DATE=`/bin/date` # Default filenames RECENT="00recent.txt"; cd /ftp-service/ftp/pub/msdos/programming for i in `/bin/ls -1`; do /ftp-service/bin/index.pl $i done echo "" echo "Doing monthindex" /ftp-service/bin/monthindex echo "" echo "Doing allindex" /ftp-service/bin/allindex echo "" echo "Updating '$RECENT'" echo "Recent updates on our site.\nThis file updated \c" > $RECENT echo $DATE >> $RECENT echo "" >> $RECENT find . -type f -mtime -14 -print | grep -v index >> $RECENT chmod 664 $RECENT chgrp ftpadm $RECENT