On 2007-12-03 James Youngman <[EMAIL PROTECTED]> wrote: > Or just build the GNU locate database directly from the mlocate > database, without indexing the disk:
> db=/var/cache/locate/locatedb > if mlocate -0 -r "" | sort -z | /usr/lib/locate/frcode -0 > $db.new ; then > mv -- $db $db.old && mv -- $db.new $db && rm -- $db.old > else > rm $db.new > false > fi I guess 'mlocate -0 -r ""' should be run as nobody, to not show the contents of forbidden dirctories to unprivilged users. cu andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]