Commit 51a23f3e authored by canterburym's avatar canterburym

Fixing pidof calls in demo scripts

parent 7a0502ad
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
echo "Starting Middlebox" echo "Starting Middlebox"
../middlebox 8423 127.0.0.1:8423 simpleMiddlebox & ../middlebox 8423 127.0.0.1:8423 simpleMiddlebox &
mboxpid=$(pidof ../mcmbox) mboxpid=$(pidof middlebox)
#sleep .3 #sleep .3
echo "Starting Server" echo "Starting Server"
../server ./simpleEchoScript.sh & ../server ./simpleEchoScript.sh &
serverpid=$(pidof ../mcserver) serverpid=$(pidof server)
#sleep .3 #sleep .3
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
echo "Starting Middlebox" echo "Starting Middlebox"
../middlebox 8423 127.0.0.1:8423 simpleMiddlebox ./replacementScript.sh & ../middlebox 8423 127.0.0.1:8423 simpleMiddlebox ./replacementScript.sh &
mboxpid=$(pidof ../mcmbox) mboxpid=$(pidof middlebox)
#sleep .3 #sleep .3
echo "Starting Server" echo "Starting Server"
../server ./simpleEchoScript.sh & ../server ./simpleEchoScript.sh &
serverpid=$(pidof ../mcserver) serverpid=$(pidof server)
#sleep .3 #sleep .3
......
...@@ -4,13 +4,13 @@ sudo tcpdump -i lo -w client_to_mbox.pcap port 8423 & ...@@ -4,13 +4,13 @@ sudo tcpdump -i lo -w client_to_mbox.pcap port 8423 &
echo "Starting Middlebox" echo "Starting Middlebox"
../middlebox 8423 127.0.0.1:8423 simpleMiddlebox & ../middlebox 8423 127.0.0.1:8423 simpleMiddlebox &
mboxpid=$(pidof ../mcmbox) mboxpid=$(pidof middlebox)
#sleep .3 #sleep .3
echo "Starting Server" echo "Starting Server"
../server ./simpleEchoScript.sh & ../server ./simpleEchoScript.sh &
serverpid=$(pidof ../mcserver) serverpid=$(pidof server)
#sleep .3 #sleep .3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment