On Tuesday 24 February 2004 11:46 pm, Steven T. Hatton wrote:
On Tuesday 24 February 2004 10:43 pm, Carlos E. R. wrote:
The Tuesday 2004-02-24 at 20:40 -0500, Steven T. Hatton wrote:
I've discovered that adding '/windows' to the UPDATEDB_PRUNEPATHS variable through the YaST Editor for Sysconfig Files has no effect on the contents of the output of locate. IOW, after I change the setting and run updatedb as root, I still get a listing of what's under /windows.
Of course. Those variables are only used by the cron task that runs updatedb daily - if you issue the command "updatedb" as root, it runs without parameters and will search all mounted disks accessible to root.
I should have been more clear, as you may have noticed in my follow up. It also fails to prune in the cron job. I'll see what happens tonight after changing from /windows/F to /windows. I wonder how I can get updatedb to run the same way the cron job does. I guess I need to dig through the scripts. I often want to update the locatedb after doing a major cvs checkout, or similar. I'd like it to behave the same way as the cron job does. (assuming the cron job does the right thing.)
updatedb --prunepaths='/mnt /tmp <etc>'
-- Cheers, Carlos Robinson
STH
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/25/04 07:41 + +----------------------------------------------------------------------------+ "`It can't happen here' is Number 1 on the list of famous last words." - David Crosby, rock singer and musician