You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2015/04/24 17:24:00 UTC

svn commit: r1675888 - /uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh

Author: eae
Date: Fri Apr 24 15:24:00 2015
New Revision: 1675888

URL: http://svn.apache.org/r1675888
Log:
only keep 1 day of logfiles and remove dd2spring tmp files

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh?rev=1675888&r1=1675887&r2=1675888&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh Fri Apr 24 15:24:00 2015
@@ -28,9 +28,12 @@ find /home/degenaro/ducc/logs/ -maxdepth
 togo=`find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*"  -mtime +1 | wc -l`
 echo Removing $togo directories in /tmp/ducc/driver/
 find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*"  -mtime +1 | xargs -i ls -ld {}
+togo=`find /tmp/ -maxdepth 1 -name "*.xml" -mtime +1 | wc -l`
+echo Removing $togo xml files in /tmp
 
 
 # this section actually removes stuff
 find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*"  -mtime +2 | xargs -i rm -rf {}
 find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*"  -mtime +2 | xargs -i rm -rf {}
-find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*"  -mtime +1 | xargs -i rm -rf {}
\ No newline at end of file
+find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*"  -mtime +1 | xargs -i rm -rf {}
+find /tmp/ -maxdepth 1 -name "*.xml" -mtime +1 | xargs -i rm -f {}