Albert E. Whale grabbed a keyboard and wrote:
> 
> Find is actually caching the Directory Information, before it sorts through it
> all.
> 
> Put the Following Option into your script:
> 
> -maxdepth 1
> 
> This will make find examine the directories that you want to delete, and not the
> underlying filestructure underneath.

Ah, so what's happening is that it's deleting the found Cache directory, 
and then wants to look in the (now deleted) Cache directory to see if 
there's another directory called Cache.  I can see where that would cause 
the error message in question.

> HTH.

I think it just might. :-)  Thanks for the information!

                      --Dave

> David Guntner wrote:
> 
> > I've got a cron job that runs every night, to get rid of Mozilla cache files.
> > In it, it does:
> >
> > cd /home
> > for d in `ls`
> > do
> >   if [ -d $d/.mozilla ]; then
> >     find $d/.mozilla -type d -name Cache -exec rm -rf {} \;
> >   fi
> > done
-- 
      David Guntner      GEnie: Just say NO!
 http://www.akaMail.com/pgpkey/davidg or key server
                 for PGP Public key


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to