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"
export PRUNEPATHS
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:
/usr/bin/updatedb
Can anybody explain what I am missing?
Thanks,
Jim
.
- Follow-Ups:
- Prev by Date: Re: Capitalization
- Next by Date: Re: Mandrake 10.1 can't seem to see DVD's
- Previous by thread: Capitalization
- Next by thread: Re: updatedb seems to ignore prunepaths environment variable
- Index(es):