#!/usr/peyton/bin/sh # CRONFILE FOR ARCHIVE IN DIRECTORY /u/strauss/apo/mailer PATH=$PATH:/usr/ucb; export PATH quiet="" if [ "$1" = "-q" ] ; then quiet="-q" fi # create a file to insure that no one searches during an index touch /u/strauss/apo/mailer/indexing-in-progress # delete the search boxes in all current files (filelist may change) /u/dssadmin/glimpse/addsearch /u/strauss/apo/mailer -r $quiet # Do the retrieving /u/dssadmin/glimpse/makenh /u/strauss/apo/mailer $quiet # put the search box in the html files -- will check config file # and will not do anything if not wanted /u/dssadmin/glimpse/addsearch /u/strauss/apo/mailer $quiet cd /u/strauss/apo/mailer # Do the indexing if [ "$quiet" = "-q" ] ; then /usr/bin/cat /u/strauss/apo/mailer/.wg_toindex | /u/dssadmin/glimpse/bin/glimpseindex -H /u/strauss/apo/mailer -n -o -t -h -X -U -f -C -F > /dev/null else /usr/bin/cat /u/strauss/apo/mailer/.wg_toindex | /u/dssadmin/glimpse/bin/glimpseindex -H /u/strauss/apo/mailer -n -o -t -h -X -U -f -C -F fi # Compress neighborhood files if [ "$quiet" = "-q" ] ; then /usr/bin/cat /u/strauss/apo/mailer/.wg_madenh | /u/dssadmin/glimpse/bin/wgconvert -H /u/strauss/apo/mailer -U -P .nh. -F -ni | grep -v "^hash_misses=0" else /usr/bin/cat /u/strauss/apo/mailer/.wg_madenh | /u/dssadmin/glimpse/bin/wgconvert -H /u/strauss/apo/mailer -U -P .nh. -F -ni fi # set the permissions chmod a+r .glimpse_* # remove the locking file /bin/rm -f /u/strauss/apo/mailer/indexing-in-progress