From: Adriana Draghici Date: Sun, 11 Apr 2010 09:50:44 +0000 (+0300) Subject: updated paths in parse_log/status_files scripts. X-Git-Tag: getopt_long~100 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=7f127fa09cea985a8cb3df03c0bfce5f64f5e556;p=cs-p2p-next.git updated paths in parse_log/status_files scripts. --- diff --git a/scripts/parse_log_files b/scripts/parse_log_files index b1b3daf..93ae4f3 100755 --- a/scripts/parse_log_files +++ b/scripts/parse_log_files @@ -1,7 +1,7 @@ #!/bin/bash DATABASE_FILE=client-limitation-experiment.db -REPOSITORY_ROOT=../../../cs-p2p-next +REPOSITORY_ROOT=../cs-p2p-next echo "Running libtorrent log file parser." echo "Database file is $DATABASE_FILE" @@ -19,7 +19,7 @@ for folder in $(find .. -type d -name 'p2p-next-*' | sort); do echo "Parsing status folder $folder for session id $id ... " for log_file in $(find $folder/log/libtorrent_logs5* -type f); do - yes y | PYTHONPATH=$REPOSITORY_ROOT/auto/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/LogParser.py -i $id -f $log_file $DATABASE_FILE + yes y | PYTHONPATH=$REPOSITORY_ROOT/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/LogParser.py -i $id -f $log_file $DATABASE_FILE done done diff --git a/scripts/parse_status_files b/scripts/parse_status_files index 7a14641..78022f2 100755 --- a/scripts/parse_status_files +++ b/scripts/parse_status_files @@ -1,7 +1,7 @@ #!/bin/bash DATABASE_FILE=client-test.db -REPOSITORY_ROOT=../../../cs-p2p-next +REPOSITORY_ROOT=../cs-p2p-next echo "Running status file parser." echo "Database file is $DATABASE_FILE" @@ -13,6 +13,6 @@ for status_file in $(find .. -type f -name 'hrktorrent_file*.log' | sort); do ((id++)) echo -n "Parsing status file $status_file for session id $id ... " - PYTHONPATH=$REPOSITORY_ROOT/auto/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/StatusParser.py -i $id -f $status_file $DATABASE_FILE + PYTHONPATH=$REPOSITORY_ROOT/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/StatusParser.py -i $id -f $status_file $DATABASE_FILE echo "done" done