From: mh AT mike DOT franken DOT de (Michael Hirmke) Subject: Re: how to use updatedb 12 Nov 1998 17:43:45 -0800 Message-ID: <74fF7r9ppfB.cygnus.gnu-win32@mike.franken.de> References: <008501be0cf1$39952580$021d5982 AT wb DOT utwente DOT nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com 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 AT mike DOT franken DOT de | WWW http://aquarius.franken.de/ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".