From dafff21ae288d5d8da800a0d30cda8b3050f19f8 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Tue, 3 Aug 2010 19:27:52 +0300 Subject: [PATCH] ControlScripts: add over-script for detecting clients who completed their download --- ControlScripts/detect_complete_client.sh | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 ControlScripts/detect_complete_client.sh diff --git a/ControlScripts/detect_complete_client.sh b/ControlScripts/detect_complete_client.sh new file mode 100755 index 0000000..638a206 --- /dev/null +++ b/ControlScripts/detect_complete_client.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# +# 2010 Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# +# Detect completed client +# The script +# * detects when a client stops +# +# Command line argument specifies client type + +# use _DEBUG="off" to turn off debug printing +_DEBUG="on" + +if test $# -ne 2; then + echo "usage: $0 client-type 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_file=$2 + +detect_complete_client ${client_type} ${log_file} -- 2.20.1