[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Using Locate Under Red Hat 6.2



On Wed, Jun 27, 2001 at 06:36:47PM +1000, D.V.Rogers wrote:
> Hello All (Again)
> When using locate under Red Hat 6.2 i get the following;
> you need to run the /etc/cron.daily/slocate.cron command as root
> How do I do this?

Have a look at that file ie /etc/cron.daily/slocate.cron
You will prob find that its a script that runs something like this:

#!/bin/sh
/usr/bin/slocate -u -f "nfs,smbfs,ncpfs,proc,devpts" -e
"/tmp,/var/tmp,/usr/tmp,/afs,/net"

That script just runs a program called slocate that updates a database of
where all the files are - ie keeps the database up-to-date.

You can run the script from /etc/cron.daily by hand.
Just go into the directory and type ./slocate as root.
It will run and do its job.

You are prob getting the message because the system has not had a chance to
run the script for a while.

Mike
-- 
It's sweet to be remembered, but it's often cheaper to be forgotten.

Michael Lake, University of Technology, Sydney
Work: Mike.Lake@nospam.uts.edu.au Ph: 02 9514 1724 Fx: 02 9514 1628 
Home: http://www.speleonics.com.au
Linux enthusiast, active caver and interested in anything technical.
               ***************************************



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug