View Single Post
Old 06-29-2002, 04:01 PM  
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,066
If you have telnet/ssh access to your server you can do it. It could probably be done multiple ways, but I'd suggest using find.

Something like (in bash):

for file in $( find /usr/home/hypo/websites -name "*.html" -atime "+30" ); do rm $file; done

atime = access time, so that'd be 30 days or more.

I'd recommend replacing 'rm' with 'echo' the first time you run it to see if what it's doing is correct (as I haven't verified it) and run a 'ls -lu filename' on a file and see the last access time. In theory this should work, but I give NO guarantees..
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote