From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 19:58:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEEC716A41C for ; Fri, 8 Jul 2005 19:58:43 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68F2043D46 for ; Fri, 8 Jul 2005 19:58:43 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 11271 invoked from network); 8 Jul 2005 19:58:42 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 8 Jul 2005 19:58:42 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 722112E; Fri, 8 Jul 2005 15:58:41 -0400 (EDT) Sender: lowell@be-well.ilk.org To: "Florian Hengstberger" To: FreeBSD mailinglist References: From: Lowell Gilbert Date: 08 Jul 2005 15:58:41 -0400 In-Reply-To: Message-ID: <44fyupdq8e.fsf@be-well.ilk.org> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: simple locate question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD mailinglist List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 19:58:43 -0000 "Florian Hengstberger" 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.