script question (cron - adobefnt*.lst)
Don Montalvo
dmjgraphics at nyc.rr.com
Thu Jan 8 12:58:20 PST 2004
i've been trying to create a cron script that will search the entire
boot volume for all instances of "AdobeFnt*.lst" and delete those
files. here are two scripts (slightly different syntax) that seem to
do the trick but i wanted to run it by you guys (my gurus...my
gods...my...um...well, you get the idea <g>)...
these two seem to do the same thing:
find / -name 'AdobeFnt*.lst' -exec rm -f {} \;
(and)
find / -name "AdobeFnt*.lst" -exec rm -f {} ';'
first question: which script is best for using as cron job?
second question: users will keep volumes mounted...is there a way to
keep the script from searching anything that's not a local disk?
====here's the terminal display====
[montalvdpb:~] root # find / -name "AdobeFnt*.lst" -exec rm -f {} ';'
find: /Volumes/SHARE/.Trashes: Permission denied
find: /Volumes/SHARE/dropboxes: Permission denied
find: /Volumes/SHARE/Temporary Items/0: Permission denied
find: /Volumes/SHARE/Temporary Items/501: Permission denied
find: /Volumes/SHARE/Temporary Items/502: Permission denied
[montalvdpb:~] root #
===================================
thanks!
don
More information about the X-Unix
mailing list