how to use updatedb

Michael Hirmke mh@mike.franken.de
Thu Nov 12 03:32:00 GMT 1998


Hi Harald,

>Hello,
>I'm new to the list. Can anyone please explain me how to use the updatedb
>command, because this is not an executable. I want to use the locate.exe
>command, but I thinks I first have to make a database.

Perhaps this helps:
doupdatedb:
------------------------< snip snip snip >-----------------------------
#!/bin/sh

#exec 2>/var/log/doupdatedb.log
#set -x

# CYGNUS main directory
: ${CYGROOT="//c/usr/cygwin-b20/H-i586-cygwin32"}
# Non-network directories to put in the database.
: ${SEARCHPATHS="//c //d //e"}
export SEARCHPATHS
# Network (NFS, AFS, RFS, etc.) directories to put in the database.
: ${NETPATHS=}
export NETPATHS
# Directories to not put in the database, which would otherwise be.
: ${PRUNEPATHS="//c/tmp //c/temp //e/tmp //e/temp //d/var/log //d/var/run //e/var/log //e/var/run"}
export PRUNEPATHS
# The database file to build.
: ${LOCATE_PATH=/var/lib/locatedb}
: ${LOCATE_DB=$LOCATE_PATH}
export LOCATE_DB
# The user to search network directories as.
: ${NETUSER=}
export NETUSER
# The directory containing the subprograms.
: ${LIBEXECDIR=$CYGROOT/libexec}
export LIBEXECDIR
# Path
PATH="$LIBEXECDIR:$BINDIR:$PATH"
export PATH

# GO !
updatedb &
------------------------< snip snip snip >-----------------------------

>
>Thanks in advance,
>
>Harald

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list