Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On a new EC2 Lucid AMI, I've tried:

$ locate include_prompt.sh

And got:

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

I've created the locate database using updatedb, and it works fine.

Do I need to put updatedb in some cron file?

Is it invoked automatically? If not, what would be a reasonable interval?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Your guess is correct - it is invoked automatically. Usually daily. From here http://manpages.ubuntu.com/manpages/lucid/en/man8/updatedb.8.html

share|improve this answer
    
Thanks, just found it on /etc/cron.daily –  Adam Matan Jul 19 '11 at 10:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.