ControlScripts: working version of parse_* scripts with pre-run/post-run script-awareness
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 6 Aug 2010 14:45:49 +0000 (17:45 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 6 Aug 2010 14:51:11 +0000 (17:51 +0300)
ControlScripts/parse_client_log.sh
ControlScripts/parse_hrk.sh

index 81371ea..dbad40e 100755 (executable)
 # use _DEBUG="off" to turn off debug printing
 _DEBUG="on"
 
-if test $# -ne 2; then
-       echo "usage: $0 log-folder log-file" 1>&2
+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
 
-# Read scenarion configuration file (CLIENT_TYPE)
-source ${BASE_PATH}/ClientWorkingFolders/TmpLogs/scenario_config
-
 # Read client mappings configuration file
 source ../ConfigFiles/client_script_mappings
 
-log_folder=$1
-log_file=$2
+client_type=$1
+log_folder=$2
+log_file=$3
 
-parse_client_log ${CLIENT_TYPE} ${log_folder} ${log_file}
+parse_client_log ${client_type} ${log_folder} ${log_file}
index 863e36d..9b57ce6 100755 (executable)
@@ -8,7 +8,6 @@
 #  * a folder where the log and data files are stored
 #  * the name of a log file in that folder
 
-
 if [ ! $# -eq 2 ]; then
        echo "usage: $0 log-folder log-file"
        exit 1