Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Help needed with gnu version of updatedb

 
   Soft32 Home -> Linux2 Arch -> Setup RSS
Next:  How do you get bash to pass all the parameters to..  
Author Message
voipfc

External


Since: Jun 09, 2007
Posts: 15



(Msg. 1) Posted: Wed Jul 18, 2007 8:26 pm
Post subject: Help needed with gnu version of updatedb
Archived from groups: comp>os>linux>setup (more info?)

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
Back to top
Login to vote
Moe Trin

External


Since: Dec 26, 2004
Posts: 1120



(Msg. 2) Posted: Thu Jul 19, 2007 10:08 am
Post subject: Re: Help needed with gnu version of updatedb [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 19 Jul 2007, in the Usenet newsgroup comp.os.linux.setup, in article
<1184808404.923331.8540 DeleteThis @e9g2000prf.googlegroups.com>, voipfc wrote:

>I am trying to use the gnu update program with the following command:
>
>updatedb --localpaths='/home/backups_01' --output=$HOME/.locate/
>locate.db

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

>Nothing happens at all.

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)?

>Have I got the options write.

Assuming the caveats noted above - it looks OK.

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

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
Back to top
Login to vote
jayjwa

External


Since: Jul 03, 2007
Posts: 4



(Msg. 3) Posted: Sat Aug 25, 2007 4:23 pm
Post subject: Re: Help needed with gnu version of updatedb [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 19 Jul 2007 15:08:50 -0500, Moe Trin wrote:


>>This not the slocate version at slocate.trakker.ca.
>
> 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.)

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.ifn.net/classic/rblstory.htm
http://theory.whirlycott.com/~phil/antispam/rbl-bad/rbl-bad.html
Finger my user name at host atr2.ath.cx for mail addr, gpg, etc.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Updatedb -- is it truly necessary to run? - I understand that Updatedb is neccesary to update the slocate database, which allows for fast file finding. However,..

updatedb runs automatically, why? - Hi! On my RH 9.0 updatedb is run in the background a short while after each boot. I would like to know in which..

Program version 4.2 doesn't match environment version - Hi, I don't know where aboves message comes from. I get it when I start db_recover for example, but I also get it when...

Help needed! - Hello! First of all I must say that I'm NEW linux user. I installed it today :) Anyway, I got really interested in this...

help needed - i have a comptuer with an: -abit ab9 motherboard -ati radeon x1950 pro video card -320gb seagate SATAII HDD and im..

help needed - i have a comptuer with an: -abit ab9 motherboard -ati radeon x1950 pro video card -320gb seagate SATAII HDD and im..
       Soft32 Home -> Linux2 Arch -> Setup All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]