How can I keep the las/server/output directory from growing too big?
Whether your server is very active or not, you should manage the product cache. It only takes one person requesting multiple large data files to fill up a smaller disk. A cache management cron job and a command line script are provided in las/etc/. To use the cron job script you will have to
Here is las/etc/las_cache_cron_job:
#!/bin/csh -f
#
# This script will delete all las/server/output/* files
# which have not been accessed in more than 'age' days or
# which are larger than 'size' bytes. It is designed to
# be run by a nightly cron job.
set age = 90 # days
set size = 1000000 # bytes
# INSERT YOUR OWN DIRECTORIES, ONE FOR EACH SERVER
#
#find /usr/local2/web/htdocs/las_1/server/output/ -atime +$age -exec rm {} \;
#find /usr/local2/web/htdocs/las_1/server/output/ -size +$size -exec rm {} \;
#find /usr/local2/web/htdocs/las_2/server/output/ -atime +$age -exec rm {}
\;
#find /usr/local2/web/htdocs/las_2/server/output/ -size +$size -exec rm {} \;
Jonathan Callahan: Jonathan.S.Callahan@noaa.gov
Last modified: January 06, 2003