On 3/18/11 11:12 AM, Chuck Swiger wrote:
On Mar 18, 2011, at 11:02 AM, Dennis Peterson wrote:
Yes, and while locate is great for older files, is not really intended for
detecting files which have appeared over the past day on a fileserver. By
default, the locate DB is only rebuilt once a week under OS X....
It is entirely configurable and you can build as many DB's as you like and
place them anywhere you like. It's Unix - you're allowed to think.
Indeed: so think about the tradeoffs of rebuilding locate databases at least
daily versus running find once a day. And then consider that you can point
find just at the export point of the OP's fileserver, whereas locate.updatedb
will index all local filesystems.
Took a while but you're at least thinking. Don't lose sight of the fact that
locate is multipurpose, for most people the DB is going to be generated no
matter what, locate is extremely fast, retains what it has found, and may well
be worth exploring. One thing seldom considered is it can be used for historical
purposes. There's no reason the newest DB has to result in the most recent DB
being deleted, for example. There are other opportunities as well if you don't
mind thinking outside the box.
I get the feeling your negative reaction is entirely a mental exercise and that
you have not given a great deal of thought to the tool and what it can do for
you. If so then that is the very definition of an unqualified response.
dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml