Re: simple locate question

2005-07-08 Thread Jeremy Johnston

Lowell Gilbert wrote:


"Florian Hengstberger" <[EMAIL PROTECTED]> 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

 


FCODES="database.dtb"; SEARCHPATHS="dir_with_mp3s";
export FCODES; export SEARCHPATHS;
/usr/libexec/locate.updatedb

then of course using locate -d database.dtb somefile

--
Jeremy Johnston (President / Developer)
SmartServ Hosting
Email: [EMAIL PROTECTED]
Phone: 1-250-402-6634 Ext. 201
Cell: 1-250-402-9583 | [EMAIL PROTECTED] (150 Characters max)
Fax: 1-250-402-6634
Toll Free: 1-866-702-2904

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: simple locate question

2005-07-08 Thread Lowell Gilbert
"Florian Hengstberger" <[EMAIL PROTECTED]> 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


simple locate question

2005-07-08 Thread Florian Hengstberger
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!

Thanks Florian



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"