From d9e54ef3cf533fbdef66878701ff6fe7dfc27639 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 3 Aug 2010 20:10:02 +0300 Subject: [PATCH] ControlScripts: add over-script for parsing client log files --- ControlScripts/parse_client_log.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 ControlScripts/parse_client_log.sh 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} -- 2.20.1