run_demo.sh 377 Bytes
Newer Older
powelld's avatar
powelld committed
1
2
3
4


echo "Starting Middlebox"
../middlebox 8423 127.0.0.1:8423 simpleMiddlebox &
5
mboxpid=$(pidof middlebox)
powelld's avatar
powelld committed
6
7
8
9
10

#sleep .3

echo "Starting Server"
../server ./simpleEchoScript.sh &
11
serverpid=$(pidof server)
powelld's avatar
powelld committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#sleep .3

n=0; while [[ $n -lt $1 ]]; do

    n=$((n+1))
    echo "Starting Client"
    ../client simple_input.json

done;

echo "Cleaning up"
kill $mboxpid
kill $serverpid