Help needed with gnu version of updatedb

Help needed with gnu version of updatedb

Post by voipf » Fri, 20 Jul 2007 10:26:44



I am trying to use the gnu update program with the following command:

updatedb --localpaths='/home/backups_01' --output=$HOME/.locate/
locate.db

Nothing happens at all. Have I got the options write.

This not the slocate version at slocate.trakker.ca.

- voipfc
 
 
 

Help needed with gnu version of updatedb

Post by ibuprofi » Sat, 21 Jul 2007 05:08:50

On Thu, 19 Jul 2007, in the Usenet newsgroup comp.os.linux.setup, in article



Assuming that is actually one line with the last option reading
'--output=$HOME/.locate/locate.db' and whatever $HOME expands to
in the environment you are running does contain the .locate
directory - OK


How are you running the command? Is this from a command-line - if so,
by who, and exactly what happens - does the prompt return immediately
with no message anywhere? Is this a cron job? If so, is $HOME
defined in the cron environment (run a cron job that runs the command
'set > /tmp/cron.environment' to see what that is)? Is there any log
output (perhaps /var/log/cron)?


Assuming the caveats noted above - it looks OK.


So, exactly which is it? Does 'updatedb --version' tell? (There are
several versions - some of which have been "improved" which could cause
problems. The only GNU version I have immediate access to is version 4.1
from a long time ago, and that is a fairly simple Bourne shell script.)

Old guy

 
 
 

Help needed with gnu version of updatedb

Post by jayjw » Mon, 27 Aug 2007 10:23:06


Look in findutils from ftp.gnu.org. I've got findutils-4.2.31 here. It's
better maintained, IMO. I used to use 'slocate', but 'locate' with the
right options keeps private files out of the database.

@OP: updatedb is just a shell script. Key it in and see where it's
botching up. Also, make sure updatedb and locate are both looking in the
same place for their database, else you'll not get output when running
locate because there is nothing in the database (I'd imagine...haven't
tried building an empty db myself).

At compile time I build mine with /var/cache/locate/locatedb as the
database, then leave the database location alone during updates.



--
[RBL:Just A Bad Idea] Do not use DNS-RBL; Demand your ISP stop.
Tell RoadRunner/Adelphia, Netzero,etc: don't trash your mail.
http://www.yqcomputer.com/
http://www.yqcomputer.com/ ~phil/antispam/rbl-bad/rbl-bad.html
Finger my user name at host atr2.ath.cx for mail addr, gpg, etc.