/[kvoss]/package/debian/kvalobs/trunk/scripts/qabase_cron.sh
ViewVC logotype

Contents of /package/debian/kvalobs/trunk/scripts/qabase_cron.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 610 - (show annotations) (download) (as text)
Wed Sep 10 11:28:54 2008 UTC (11 years, 2 months ago) by borgem
File MIME type: application/x-sh
File size: 573 byte(s)
log/html cleaner script.
1 #! /bin/sh
2
3 ##QABASELOGDIR=/metno/kvalobs/var/log/html
4 QABASELOGDIR=$(kvconfig --localstatedir)/kvalobs/log/html
5
6 #find $QABASELOGDIR -name '*.html' -type f -mtime +0 -exec rm -f {} \;
7 find $QABASELOGDIR -xdev -name '*.html' -type f -mmin +360 -exec rm -f {} \;
8 #find $QABASELOGDIR -name '*.html' -type f -exec rm -f {} \;
9 find $QABASELOGDIR -xdev -type d -cmin +120 -exec rmdir --ignore-fail-on-non-empty {} \;
10
11 # create nice map of existing log-files (output: html)
12 ####find $QABASELOGDIR -name '*.html' -type f | /metno/kvalobs/bin/log_map > $QABASELOGDIR/log_map.html

Properties

Name Value
svn:executable *

svn@met.no
ViewVC Help
Powered by ViewVC 1.1.5