-
Notifications
You must be signed in to change notification settings - Fork 1
/
remote.sh
18 lines (16 loc) · 1003 Bytes
/
remote.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
for nc in 10 20 40
do
for cl in "ONE" "QUORUM"
do
ssh xcnd50 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash load_data.sh /home/stuproj/cs4224k/CS4224-Cassandra/data/data-files > log/$nc-$cl-load-data.txt"
ssh xcnd50 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash main.sh 1 $nc $cl > log/1-$nc-$cl-log.txt" &
ssh xcnd51 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash main.sh 2 $nc $cl > log/2-$nc-$cl-log.txt" &
ssh xcnd52 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash main.sh 3 $nc $cl > log/3-$nc-$cl-log.txt" &
ssh xcnd53 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash main.sh 4 $nc $cl > log/4-$nc-$cl-log.txt" &
ssh xcnd54 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash main.sh 5 $nc $cl > log/5-$nc-$cl-log.txt" &
wait
ssh xcnd50 "cd /home/stuproj/cs4224k/CS4224-Cassandra && bash summary.sh $nc $cl > log/$nc-$cl-summry-data.txt"
echo "Done $nc $cl..."
done
done