Jake McHenry wrote:

> The file in in cron.daily
>
> in slocate.cron
>
> here is what's in the file...
>
> #!/bin/sh
> /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e
> "/tmp,/var/tmp,/usr/tmp,/afs,/net"
>
> I don't use nfs, or samba, should those be in there if I'm not using those?
>
> Jake

<snip>

It sure looks different that the one in my Redhat 6.0:


#!/bin/sh

NETMOUNTS=`mount -t nfs,smbfs,ncpfs | cut -d ' ' -f 3`
NETPATHS=`echo $NETMOUNTS | sed -e 's| |,|g'`

if [ -n "$NETPATHS" ]; then
  /usr/bin/slocate -u -e "$NETPATHS,/tmp,/var/tmp,/usr/tmp,/afs,/net,/proc"
else
  /usr/bin/slocate -u -e "/tmp,/var/tmp,/usr/tmp,/afs,/net,/proc"
fi
--
Bond reflected that good Americans were fine people and that most of them
seemed to come from Texas.
                -- Ian Fleming, "Casino Royale"

  4:36pm  up 54 days,  8:09,  4 users,  load average: 0.10, 0.11, 0.04




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to