3 # Copyright: Calin-Andrei Burloiu 2010 - calin.burloiu@gmail.com
5 # Bash script used generate torrent files for the TSUP Experiment
7 # * generates a torrent file for each of the 12 trackers, for files of 4MiB,
8 # 16MiB, 64MiB, 256MiB, 1GiB.
11 tracker_url_array=( 10.3.8.1:6969 10.3.8.2:6969
12 10.3.8.3:6969 10.3.8.4:6969
13 10.3.8.5:6969 10.3.8.6:6969
14 10.3.8.7:6969 10.3.8.8:6969
15 10.3.8.9:6969 10.3.8.10:6969
16 10.3.8.11:6969 10.3.8.12:6969 )
18 for i in 4M 16M 64M 256M 1024M; do
20 for url_item in ${tracker_url_array[@]}; do
22 if [ -e $filename ]; then
23 echo "Making $filename.tracker$index.torrent for"
24 echo " tracker_index: $index, tracker_url: $url_item, file_size: $i"
25 btmakemetafile $url_item/announce $filename --target $filename.tracker$index.torrent
27 echo "Warning: $filename does not exist."