files

File Remover Script

Here is a little file remover script I wrote for servers here. It takes either takes 2 arguments or can be run interactively. It looks in a directory specified and removes the files that are x days old. This is nice for servers that fill up with backup files or logs. This goes hand-in-hand with volume size monitoring, of course. Feel free to use/change or comment on the script. Enjoy!

  1. /*
  2. * File Remover Program
  3. * Author: Mike Dunphy
  4. * Seattle Pacific University