Hi,<br>
<br>
<br>
I'm using Kubuntu 5.10, and I seem to have two entries for updating the
[s]locate database in /etc/cron.daily. They are "find.notslocate" and
"slocate", and apart from the practical implementation, they both seem
to be doing about the same thing. Any opinions? (Shouldn't I remove one
of these files?)<br>
<br>
imre<br>
<br>
<br>
--- contents of "find.notslocate" ---<br>
#! /bin/sh<br>
#<br>
# cron script to update the `locatedb' database.<br>
#<br>
# Written by Ian A. Murdock <<a href="mailto:imurdock@debian.org">imurdock@debian.org</a>> and <br>
# Kevin Dalley <<a href="mailto:kevin@aimnet.com">kevin@aimnet.com</a>><br>
<br>
LOCALUSER="nobody"<br>
export LOCALUSER<br>
if [ -f /etc/updatedb.conf ]; then<br>
. /etc/updatedb.conf<br>
fi<br>
<br>
if getent passwd $LOCALUSER > /dev/null ; then<br>
cd / && nice -n ${NICE:-10} updatedb 2>/dev/null<br>
else<br>
echo "User $LOCALUSER does not exist."<br>
exit 1<br>
fi<br>
<br>
--- end ---<br>
<br>
<br>
--- contents of "slocate" ---<br>
<br>
#! /bin/sh<br>
<br>
if [ -x /usr/bin/slocate ]<br>
then<br>
if [ -f /etc/updatedb.conf ]<br>
then<br>
/usr/bin/updatedb<br>
else<br>
/usr/bin/updatedb -f proc<br>
fi<br>
chown root.slocate /var/lib/slocate/slocate.db<br>
fi<br>
<br>
--- end ---<br>
<br clear="all"><br>-- <br>[ Imre Tuske | http://... | mailto:<a href="mailto:imre.tuske@gmail.com">imre.tuske@gmail.com</a> ]