Marco Marongiu said at 09:51 13-12-2001:
>#!/bin/bash
>
># AxKit Cache Directory
>CACHEDIR=/opt/apache/cache
>
># Maximum age of files (30 days here)
>MAXAGE=30
>
># You may prefer -mtime instead of -ctime here...
>find $CACHEDIR -type f -ctime +$MAXAGE -exec rm -f {} \;
Just in case somebody breaks in, or does sumfin stupid,
you may want to add -xdev or the equivalent for your flavour,
to stay on the same partition.
Best regards,
Melvyn Sopacua
WebMaster IDG.nl
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
If it applies, where it applies - this email is a personal
contribution and does not reflect the views of my employer
IDG.nl.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]