#!/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"
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
#!/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"
((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