#!/usr/bin/sh # create a file to insure that no one searches during an index touch /home/web/mbbnet/search/indexing-in-progress # CRONFILE FOR ARCHIVE IN DIRECTORY /home/web/mbbnet/search # delete the search boxes in all current files (filelist may change /net/research/mbgroup/html/webglimpse-1.1/addsearch /home/web/mbbnet/search -r # Do the retrieving /net/research/mbgroup/html/webglimpse-1.1/makenh /home/web/mbbnet/search # put the search box in the html files -- will check config file # and will not do anything if not wanted /net/research/mbgroup/html/webglimpse-1.1/addsearch /home/web/mbbnet/search # Do the indexing /opt/gnu/bin/cat /home/web/mbbnet/search/.wg_toindex | /opt/local/bin/glimpseindex -H /home/web/mbbnet/search -o -t -h -X -U -f -C -F # Compress neighbourhood files /opt/gnu/bin/cat /home/web/mbbnet/search/.wg_madenh | /opt/local/bin/wgconvert -H /home/web/mbbnet/search -U -P .nh. -M -F -ni # now change the directory and set the permissions cd /home/web/mbbnet/search chmod a+r .glimpse_* # remove the locking file /bin/rm -f /home/web/mbbnet/search/indexing-in-progress