>Copy this into a file called apclean.sh and chmod 700 the file.
>
>----------------------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---------------------------
Silly me, forgot a directory in the MD path:
MD=/home/zizazat/circle/aoa/lib
:)
_________________________________________________________________
MSN 8: advanced junk mail protection and 3 months FREE*.
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_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