]> p2p-next.cs.pub.ro Git - utp-swift.git/commitdiff
source config file; cleanup leecher data folder
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 21 Nov 2010 19:55:56 +0000 (21:55 +0200)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 21 Nov 2010 19:55:56 +0000 (21:55 +0200)
local_start_swift_leecher
local_start_swift_seeder
local_start_utp_receiver
local_start_utp_sender

index c307b3e6a44d07962bdbc8935138a1479b5d5198..abf03ae060ef701291bfa8e05a5b41c9df3b9ec5 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# load config
+source ./config
+
 if test $# -ne 1; then
        echo "Usage: $0 seeder-ip" 1>&2
        exit 1
@@ -13,6 +16,9 @@ cleanup()
        kill -TERM $hook_pid > /dev/null 2>&1
 }
 
+# remove receiver data, if any
+rm -fr $LEECHER_DIR/*
+
 # wait for seeder startup
 sleep 30
 
index 2e4a668db0ee882fe8b96e36e2f945ea8ef182ee..082a2d3b24de5a956b524dd4167d0a788dcf3f56 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# load config
+source ./config
+
 if test $# -ne 1; then
        echo "Usage: $0 local-ip" 1>&2
        exit 1
index 3570efab4a929dc4f226a8198b4e63ef5e20640b..407f4293c374d76713182569010c50bbf5dda683 100755 (executable)
@@ -1,11 +1,17 @@
 #!/bin/bash
 
+# load config
+source ./config
+
 cleanup()
 {
        kill -TERM $client_pid > /dev/null 2>&1
        kill -TERM $hook_pid > /dev/null 2>&1
 }
 
+# remove receiver data, if any
+rm -fr $LEECHER_DIR/*
+
 > $UTP_RECEIVER_OUT_LOG
 > $UTP_RECEIVER_LOG_FILE
 > $UTP_RECEIVER_MONITOR_LOG
index c212650b2fb9e430fe502a5e575d12e98e2a5dd4..d8d70ed3b3bfa73f6b5eff32ac9542dc5c867200 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# load config
+source ./config
+
 if test $# -ne 1; then
        echo "Usage: $0 receiver_ip" 1>&2
        exit 1