Geoff Hutchison wrote:
>
> At 7:52 PM -0400 8/1/00, Dan Amarel wrote:
> >though I hadn't changed anything on the example rundig
> >script besides the path to COMMONDIR.
>
> So let's get this straight. It was working OK before and then you
> changed the path and now it's not?
No, I've only run it with the changed COMMONDIR path, i.e.
'COMMONDIR=/home/httpd/html/htdig'
changed to
'COMMONDIR=/usr/local/apache-tom3.1/htdocs/htdig'.
>
> Can we see the modified script?
Sure, I'll attach it.
Thanks!
-DA
>
> --
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/
>
> ------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> [EMAIL PROTECTED]
> You will receive a message to confirm this.
--
Dan Amarel ~ Internet Projects @ DeMeDo ~ USA
voice 212-460-8574 ~ [EMAIL PROTECTED]
#!/bin/sh
#
# rundig
#
# $Id: rundig,v 1.7 1999/01/31 04:27:02 ghutchis Exp $
#
# This is a sample script to create a search database for ht://Dig.
#
DBDIR=/var/lib/htdig
# WAS: COMMONDIR=/home/httpd/html/htdig
COMMONDIR=/usr/local/apache-tom3.1/htdocs/htdig
BINDIR=/usr/bin
# To help debug problems, try running rundig -vvv
# This will add lots of debugging output to all of the programs
stats= opts= alt=
for arg
do
case "$arg" in
-a) alt="$arg" ;;
-s) stats="$arg" ;;
*) opts="$opts $arg" ;; # e.g. -v or -c config
esac
done
#
# Set the TMPDIR variable if you want htmerge to put files in a location
# other than the default. This is important if you do not have enough
# disk space for the big sort that htmerge runs. Also, be aware that
# on some systems, /tmp is a memory mapped filesystem that takes away
# from virtual memory.
#
TMPDIR=$DBDIR
export TMPDIR
$BINDIR/htdig -i $opts $stats $alt
$BINDIR/htmerge $opts $stats $alt
case "$alt" in
-a)
( cd $DBDIR && test -f db.docdb.work &&
for f in *.work
do
mv -f $f `basename $f .work`
done ) ;;
esac
# If you're low on disk space and you don't mind completely reindexing
# every time you run this script, you can always
# rm $DBDIR/db.wordlist
# OR
# If you'd rather run update digs all the time with the minimal databases
# Keep only the following files (and don't call htdig with -i):
# db.docdb, db.docdb.work, db.docs.index, db.wordlist.work, db.words.db
$BINDIR/htnotify $opts
# If you want to use the soundex and (or) metaphone fuzzy matchings,
# Uncomment the following line
# @WAS:
#BINDIR/htfuzzy $opts soundex metaphone
$BINDIR/htfuzzy $opts soundex metaphone
#
# Create the endings and synonym databases if they don't exist
# or if they're older than the files they're generated from.
# These databases are semi-static, so even if pages change,
# these databases will not need to be rebuilt.
#
if [ "`ls -t $COMMONDIR/english.0 $COMMONDIR/word2root.db 2>/dev/null | sed 1q`" = \
"$COMMONDIR/english.0" ]
then
cat <<EOF
Warning:
The following is a lengthly process, but it is run only
the first time you start ht://Dig. Initializing database...
EOF
$BINDIR/htfuzzy $opts endings
fi
if [ "`ls -t $COMMONDIR/synonyms $COMMONDIR/synonyms.db 2>/dev/null | sed 1q`" = \
"$COMMONDIR/synonyms" ]
then
cat <<EOF
Warning:
The following is a lengthly process, but it is run only
the first time you start ht://Dig. Initializing database...
EOF
$BINDIR/htfuzzy $opts synonyms
fi
/usr/bin/htfuzzy $verbose metaphone
/usr/bin/htfuzzy $verbose soundex
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.