commit 5ccc8b14ce1269ac93bb5506b010a5f1c6b4a77a Author: Peter Palfrader peter@palfrader.org Date: Fri Jul 13 13:29:47 2012 +0200
Make the find call saner
Fix the find call to not require grep, and to not exec up to a 1000 rms at once, or exec rms with no arguments. --- NetworkScanners/BwAuthority/run_scan.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/NetworkScanners/BwAuthority/run_scan.sh b/NetworkScanners/BwAuthority/run_scan.sh index bc25489..ba535cd 100755 --- a/NetworkScanners/BwAuthority/run_scan.sh +++ b/NetworkScanners/BwAuthority/run_scan.sh @@ -29,11 +29,7 @@ sleep 5
# FIXME: We resume in a ghetto way by saving the bws-*done* files. # A more accurate resume could be implemented in bwauthority.py -for i in data/scanner.* -do - find $i/scan-data/ -depth -type f -print | egrep -v -- "-done-|/.svn" | xargs -P 1024 rm - #rm $i/scan-data/* -done +find data/scanner.* -name .svn -prune -o -type f -a ! -name '*-done-*' -exec rm {} +
rm -f ./data/tor/tor.log