[tor-commits] [flashproxy/master] Make sure a firefox instance exists to begin with.

dcf at torproject.org dcf at torproject.org
Sun Jul 24 03:26:57 UTC 2011


commit 29d773a87bec8344a10d7631dae365d4c8e2aec9
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Jul 23 06:06:38 2011 +0000

    Make sure a firefox instance exists to begin with.
---
 experiments/01 |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/experiments/01 b/experiments/01
index 1ffadaa..8718e0d 100755
--- a/experiments/01
+++ b/experiments/01
@@ -37,6 +37,12 @@ until [ $i -gt $NUM_CLIENTS ]; do
     let i=i+1
 done
 
+# Start the flash proxy, server side
+echo "starting flash proxy server side..."
+firefox &
+sleep 2
+firefox --remote "openURL(http://localhost:1080/swfcat.swf?facilitator=127.0.0.1:4701)"
+
 # Start the flash proxy, client side
 echo "starting flash proxy client side..."
 i=1
@@ -47,10 +53,6 @@ until [ $i -gt $NUM_CLIENTS ]; do
     sleep 2
 done
 
-# Start the flash proxy, server side
-echo "starting flash proxy server side..."
-firefox --remote "openURL(http://localhost:1080/swfcat.swf?facilitator=127.0.0.1:4701)"
-
 let query_fac_time=NUM_CLIENTS+2
 sleep ${query_fac_time}
 
@@ -59,7 +61,7 @@ echo "getting the dump file..."
 i=2
 until [ $i -gt $NUM_CLIENTS ]; do
     let local_port=2000+i
-    gnome-terminal -e "/bin/bash -c 'wget -t1 http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'"
+    xterm -e "/bin/bash -c 'wget -t1 http://localhost:${local_port}/dump -O - > /dev/null; exec /bin/bash -i'" &
     let i=i+1
     sleep 2
 done





More information about the tor-commits mailing list