View Single Post
  #2   (View Single Post)  
Old 30th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

How I would first try to do it:

a cron job A that uses find to recurse for all files/dir's in the target hier and rm -rf's them if criteria X are met.

a cron job B that uses find to do likewise but for Y instead of X.


GNU Find#time


Another trick would be using a cronjob to run a custom made hunt & kill script or a self-rolled daemon to hunt and peck the files, perls a nice handler for that.

But cron+find should be able to do it all.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote