quickrun.sh 325 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

    echo "Starting Middlebox"
    ./middlebox 8423 127.0.0.1:8423 simpleMiddlebox &
    mboxpid=$(pidof ./middlebox)

    sleep .3

    echo "Starting Server"
    ./server &
    serverpid=$(pidof ./server)

    sleep .3

    echo "Starting Client"
    ./client

    echo "Cleaning up"
    kill $mboxpid
    kill $serverpid