From b7df695acf977fd070c249d8d4327d6102332a48 Mon Sep 17 00:00:00 2001 From: adash Date: Wed, 25 Nov 2009 20:36:46 +0000 Subject: [PATCH] script to synchronize times --- .../src/Runtime/DSTM/interface/clocksync.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 Robust/src/Runtime/DSTM/interface/clocksync.sh diff --git a/Robust/src/Runtime/DSTM/interface/clocksync.sh b/Robust/src/Runtime/DSTM/interface/clocksync.sh new file mode 100755 index 00000000..b1cb78c1 --- /dev/null +++ b/Robust/src/Runtime/DSTM/interface/clocksync.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +gcc -Wall -o server clocksyncserver.c +gcc -Wall -o client clocksyncclient.c + +SERVER="dc-1.calit2.uci.edu" +CLIENT="dc-2.calit2.uci.edu dc-3.calit2.uci.edu dc-4.calit2.uci.edu dc-5.calit2.uci.edu dc-6.calit2.uci.edu dc-7.calit2.uci.edu dc-8.calit2.uci.edu" +BASEDIR=~/research/Robust/src/Runtime/DSTM/interface + +j=2 +for i in $CLIENT; do + echo $i + echo "$BASEDIR" > ~/.tmpdir + echo "./client $j" > ~/.tmpvars + ssh $i 'cd `cat ~/.tmpdir`; `cat ~/.tmpvars`' & + ./server + sleep 2 + j=`expr $j + 1` +done -- 2.34.1