TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:9249] slocate (was: Re: [TCLUG:9212] system colors)



I don't think not having if..fi is the problem.  It looks like the
"short-ciruit" feature of && and || is being used.  That is:

If the left operand of a && evaluates to false, the && evaluates to false
and the right operand is never evaluated.  Alternatively, if the left
operand of || evaluates to true, the || evaluates to true, and the right
operand is never evaluated.

I ran yours from the cmd line and it works fine.  Complains about updatedb
being a binary (it's actually a link to slocate), but it should, sh sure
won't interpret a binary...  It then went on to execute slocate.

Is updatedb a script?  Does it look ok?

Just 

/usr/bin/slocate -u -e "/tmp,/var/tmp,/usr/tmp,/afs,/net,/proc"

should suffice to update proper;y, if you don't have any network file
stuff mounted

A working locate is mighty nice to have

.ryan