Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread jidanni
EB> Untested, but: EB> -type d \! -readable -prune EB> seems like it should do the trick of telling find to not descend into EB> unreadable directories. Well, I hope there can be an example added to the find man page. Anyway, in the general case ... there needs to be a way... $ chmod 0 jidanni.o

Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to jida...@jidanni.org on 9/19/2009 10:16 AM: > So it's a general >find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression] > case, but with an added feature, > -ignore-unreadable-directories Find can already do that witho

Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread jidanni
>> It seems there is no way to tell find to look before it leaps, >> >> $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \; EB> Have you looked at using -ok instead of -exec? It's a total batch job, -ok not OK, OK? I'm trying to tell find: do what you need to do, but if you encounter an

Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to jida...@jidanni.org on 9/15/2009 5:16 PM: > It seems there is no way to tell find to look before it leaps, > > $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \; Have you looked at using -ok instead of -exec? - -- Don't work to