updatedb seems to ignore prunepaths environment variable
- From: JimR <myemai@xxxxxxxxxxxxxx>
- Date: Fri, 19 Jan 2007 22:45:59 -0500
When cron runs updatedb from crontab, it ignores the environment variable PRUNEPATHS.
In /etc/profile, I have these statements:
PRUNEPATHS="/windows /tmp /var/tmp /usr/tmp /var/spool /mnt /media /proc /dev"
When I echo $PRUNEPATHS, it reports back the exact same list.
When I locate files, it reports crap, for example, from the windows directories, which I am explicitly trying to avoid.
If I run updatedb from the shell command line (with no arguments), it correctly ignores the windows directory and other directories from the environment variable PRUNEPATHS.
The crontab entry has no arguments -- it is simply:
Can anybody explain what I am missing?