*BSD News Article 9896


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6748 ; Tue, 12 Jan 93 16:16:13 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!newsserver.jvnc.net!newsserver.technet.sg!ntuix!ntrc25.ntrc.ntu.ac.sg!othman
From: othman@ntrc25.ntrc.ntu.ac.sg (othman (EEE/Div 4))
Subject: Re: Locate/fast-find (Was: Re: Shared lib X for 386bsd?)
Message-ID: <1993Jan15.021319.23606@ntuix.ntu.ac.sg>
Sender: news@ntuix.ntu.ac.sg (USENET News System)
Nntp-Posting-Host: ntrc25.ntrc.ntu.ac.sg
Organization: Nanyang Technological University - Singapore
X-Newsreader: TIN [version 1.1 PL6]
References: <C0u7rz.158@news.chalmers.se>
Date: Fri, 15 Jan 1993 02:13:19 GMT
Lines: 45

Per Anders Olausson (pao@cd.chalmers.se) wrote:
: In article <carlp.726981966@frigg> carlp@frigg.isc-br.com (Carl Paukstis) writes:
: 
: >Anyhow - on both my home BSD system and some heavily-used SYSV development
: >systems I administer here at work, I run a little cron task every
: >night that does a "find / -print >/ALLfiles".  I've aliased "locate" to
: >a bash function that greps /ALLfiles.  It ain't up-to-the-minute, but
: >it beats fumbling around and waiting for interactive "find" sessions.
: 
: Please note that for 386bsd the proper way to handle this is to run:
: 
: 		/usr/libexec/locate.updatedb
I tried running this but there are error messages:

# /usr/libexec/locate.updatedb
sort: unrecognized option `-T'
Usage: sort [-cmus] [-t separator] [-o output-file] [-bdfiMnr] [+POS1 [-POS2]]
       [-k POS1[,POS2]] [file...]
sort: unrecognized option `-T'
Usage: sort [-cmus] [-t separator] [-o output-file] [-bdfiMnr] [+POS1 [-POS2]]
       [-k POS1[,POS2]] [file...]
sort: unrecognized option `-T'
Usage: sort [-cmus] [-t separator] [-o output-file] [-bdfiMnr] [+POS1 [-POS2]]
       [-k POS1[,POS2]] [file...]
locate: updatedb failed

Anyone had patched this program.

: 
: periodically. (via cron...)
: 
: The database it creates will be in:
: 
: 		/var/db/locate.database
: 
: Hope this helps anyone out there.
: 
: pao

--
Othman bin Ahmad, School of EEE,
Nanyang Technological University, Singapore 2263.
Internet Email: eoahmad@ntuix.ntu.ac.sg
Bitnet Email: eoahmad@ntuvax.bitnet