[tor-commits] [flashproxy/master] Wait for user input after the last wget finishes.

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


commit dda30e0b6a34db4738782548d08253ea7386f7f2
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Jul 23 06:02:18 2011 +0000

    Wait for user input after the last wget finishes.
    
    The last wget could finish the download first in some cases, and it
    would end the script by killing all the other processes, interrupting
    the downloads of the other wgets.
---
 experiments/00 |    3 +++
 experiments/01 |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/experiments/00 b/experiments/00
index bc4befb..e7994df 100755
--- a/experiments/00
+++ b/experiments/00
@@ -67,6 +67,9 @@ done
 # Use this one for delaying the termination of experiment below
 wget -t1 http://localhost:2001/dump -O - > /dev/null
 
+echo "Press enter to continue."
+read
+
 # Slaughter the processes
 ps -ef | sed -n '/thttpd/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {}
 ps -ef | sed -n '/crossdomaind.py/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {}
diff --git a/experiments/01 b/experiments/01
index ff0179d..1ffadaa 100755
--- a/experiments/01
+++ b/experiments/01
@@ -67,6 +67,9 @@ done
 # Use this one for delaying the termination of experiment below
 wget -t1 http://localhost:2001/dump -O - > /dev/null
 
+echo "Press enter to continue."
+read
+
 # Slaughter the processes
 sudo killall thttpd
 ps -ef | sed -n '/crossdomaind.py/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {}





More information about the tor-commits mailing list