From bc40fa1994cc7ff0e82d75068528bc271413f1a3 Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Sat, 14 Sep 2002 19:22:45 +0000 Subject: [PATCH] - Modified to clean dirs/files created by run.sh. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150817 13f79535-47bb-0310-9956-ffa450edef68 --- .../contributions/webcrawler-LARM/cleanlastrun.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sandbox/contributions/webcrawler-LARM/cleanlastrun.sh b/sandbox/contributions/webcrawler-LARM/cleanlastrun.sh index 730d2165b55..2102e045b4d 100755 --- a/sandbox/contributions/webcrawler-LARM/cleanlastrun.sh +++ b/sandbox/contributions/webcrawler-LARM/cleanlastrun.sh @@ -1,4 +1,13 @@ #!/bin/sh -rm -r logs -rm -r cachingqueue +BASE_DIR=./runtime +LOG_DIR=$BASE_DIR/logs +CACHE_DIR=$BASE_DIR/cachingqueue +SLEEP_TIME=2 + +echo Removing $LOG_DIR... +sleep $SLEEP_TIME +rm -r $LOG_DIR +echo Removing $CACHE_DIR... +sleep $SLEEP_TIME +rm -r $CACHE_DIR