Skip site navigation (1)Skip section navigation (2)
Date:      08 Jul 2005 15:58:41 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        FreeBSD mailinglist <freebsd-questions@freebsd.org>
Subject:   Re: simple locate question
Message-ID:  <44fyupdq8e.fsf@be-well.ilk.org>
In-Reply-To: <ijbk3g.yyrjwi@webmail.tuwien.ac.at>
References:  <ijbk3g.yyrjwi@webmail.tuwien.ac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
"Florian Hengstberger" <e0025265@student.tuwien.ac.at> writes:

> How to creata a second locate database for private use?
> (mp3 database or so).
> I have tried
> $ locate -U dir_with_mp3s -o database.dtb
> 
> Searching in this database doent work
> $ locate -d database.dtb somesong.mp3
> gives no result.
> The database exists and it looks ok, seems to be a simple
> ascii format.
> What am I doing wrong?
> I guess its simple, isn't it!

I don't know; the standard locate program doesn't take a -U option,
and will give an error message accordingly if called the way you claim
you did.  Have you installed some other version of locate?

To use the standard locate, you use the locate.updatedb(8) script, as
the locate(1) manual will tell you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44fyupdq8e.fsf>