Sharninder wrote:
> is'nt the above error msg. self explanatory ... locate uses a
> database of all files and that database needs to be created and
> later kept up to date. log in as root and then give the command
> updatedb

and since the database needs to be updated, the most recent files that
yu've created will not be listed under locate.
the use of locate is that it makes searching *real* fast, however yu
need to update it on a regular basis.

if yu don't switch off your system, then setup a cron job which runs at
4 AM in the morning and updates your db. cron is similar to scheduled
tasks in windows, but much more powerful. to setup a cron job, there are
GUI tools available for gnome (and maybe kde).

however, in text mode, yu should login as root, then type "crontab -e"
without quotes. this will open vi editor where yu can setup a task.
press "I" -> that is the insert mode, then type

00 04 * * * updatedb

this means, 00 minutes, 04 hours, * day, * month, * year, and your
command. you should setup this job as root only because only root has
access to the command updatedb. after the command is executed
successfully, you'll receive an email at root about the status.

there are many uses of cron, for e.g., you can schedule a download, so
that your mozilla tarball is downloaded during the night time when yu
get the maximum bandwidth. similarily yu can start and stop services at
regular intervals (e.g. connect to the internet, download mails, then
disconnect).

make sure yu are running crond (cron daemon), to check that yu need to
login as root, then type setup at the prompt. yu'll see a list which
will have "modify services" or "enable/disable services" (no idea what
its called in redhat but its something like services), and see that
under that crond has a *

-- 
                                        \|||/
                                        (o o)
 --------------------------------ooO-----(_)-Ooo-
| vivek                | GPG Key:                |
| [EMAIL PROTECTED]    | http://exain.net/vike   |
|------------------------------------------------|
| Registered Linux User: #305493                 |
 ------------------------------------------------
                                       (  _  )
                                      _| | | |_
                                     (___| |___)





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to