From 2ae9bb97931cfa97d0fa6bc6fb4cc4d9ef35aea7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 2 Nov 2019 18:12:13 +0100 Subject: [PATCH] Add new scripts --- scripts/container/dup2-client | 14 ++++++++++++++ scripts/container/dup2-server | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 scripts/container/dup2-client create mode 100755 scripts/container/dup2-server diff --git a/scripts/container/dup2-client b/scripts/container/dup2-client new file mode 100755 index 0000000..b39b7d4 --- /dev/null +++ b/scripts/container/dup2-client @@ -0,0 +1,14 @@ +#!/bin/bash +mkdir -p $5/{log,shared,res} +donar \ + -a dup2 \ + -c \ + -o $5/shared/onion_services.pub \ + -l $4 \ + -b \ + -r 9000 \ +> $5/log/client-donar-stdout.log 2> $5/log/client-donar-stderr.log & +sleep 2 + +measlat -h 127.13.3.7 -p 9000 -r -s $3 > $5/log/client-measboot-stdout.log 2> $5/log/client-measboot-stderr.log +measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > $5/log/client-measlat-stdout.log 2> $5/log/client-measlat-stderr.log diff --git a/scripts/container/dup2-server b/scripts/container/dup2-server new file mode 100755 index 0000000..a771c09 --- /dev/null +++ b/scripts/container/dup2-server @@ -0,0 +1,13 @@ +#!/bin/bash +mkdir -p $5/{log,shared} +cd $5/shared + +donar \ + -a dup2 \ + -s \ + -l $4 \ + -b \ + -e 9000 \ +> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log & + +measlat -h 127.0.0.1 -p 9000 -l -c $1 -i $2 -s $3 > ../log/server-measlat-stdout.log 2> ../log/server-measlat-stderr.log