From: Razvan Deaconescu Date: Tue, 3 Aug 2010 17:10:02 +0000 (+0300) Subject: ControlScripts: add over-script for parsing client log files X-Git-Tag: schedule-scenario~21 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=d9e54ef3cf533fbdef66878701ff6fe7dfc27639;p=p2p-testing-infrastructure.git ControlScripts: add over-script for parsing client log files --- diff --git a/ControlScripts/parse_client_log.sh b/ControlScripts/parse_client_log.sh new file mode 100755 index 0000000..5bb0624 --- /dev/null +++ b/ControlScripts/parse_client_log.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# 2010 Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# +# Parse log file +# The script +# * parses a client-specific log file +# +# Command line argument specifies client type, log folder and log file + +# use _DEBUG="off" to turn off debug printing +_DEBUG="on" + +if test $# -ne 3; then + echo "usage: $0 client-type log-folder log-file" 1>&2 + exit 1 +fi + +# Read the global configuration variables +source ../ConfigFiles/globalconfig.txt + +# Read client mappings configuration file +source ../ConfigFiles/client_script_mappings + +client_type=$1 +log_folder=$2 +log_file=$2 + +parse_client_log ${client_type} ${log_folder} ${log_file}