> > What's wrong with: > >Doesn't that still leave an entry in the plr_index file? Hmmmm. I guess it would, wouldn't it :) How about running this afterward: cd /home/user/circle/lib/pfiles oldnames=`find . -type f -mtime +60|cut -f3 -d/` for x in $oldnames do grep -wv $x plr_index > tmp;mv tmp plr_index done Copy this into a file called apclean.sh and chmod 700 the file. Ok, ok there it is: ----------------------snip here--------------------------- #ASCII Player Files Cleanup #Change these varables to suit your situation. MD=/home/zizazat/circle/aoa DAYS=60 DN="pfiles plralias plrobjs plrvars" #Clean up files older than $DAYS days. for d in $DN do find $MD/$d -type f -mtime +$DAYS -exec rm {} \; done #Remove entries from the plr_index file cd $MD/pfiles oldnames=`find . -type f -mtime +$DAYS|cut -f3 -d/` for x in $oldnames do grep -wv $x plr_index > tmp;mv tmp plr_index done ----------------------snip here--------------------------- It's just that easy! :) --Ziz _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*. http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_virusprotection_3mf -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT