From: Adriana Draghici Date: Fri, 4 Dec 2009 12:19:19 +0000 (+0200) Subject: Tribler - added run script for SampleParser X-Git-Tag: getopt_long~227^2~3 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=b6acafb76bbf9b66e7ed2602e70ec88527abc547;p=cs-p2p-next.git Tribler - added run script for SampleParser --- diff --git a/log-parser/tribler/run_sample b/log-parser/tribler/run_sample new file mode 100755 index 0000000..32799ef --- /dev/null +++ b/log-parser/tribler/run_sample @@ -0,0 +1,18 @@ +#!/bin/bash + +DB_NAME=test.db + +# remove database in case it exists +rm -f $DB_NAME + +# create database +pushd . &> /dev/null +cd ../../auto/db && ./db_init ../../log-parser/tribler/$DB_NAME +popd &> /dev/null + +# fill database with test data +PYTHONPATH=../../auto/db/ python ../../auto/db/DatabaseAccess.py $DB_NAME + +# fill status information +PYTHONPATH=../../auto/db/ python StatusParser.py -i 1 -f ../../log-samples/tribler/test2.txt $DB_NAME +