3 # 2011, Calin-Andrei Burloiu, calin.burloiu@gmail.com
5 # Bash script used to start a transmission instance
7 # * changes current working directory to TorrentsAndData
8 # * starts a transmission session
9 # * at the end deletes the downloaded data
11 # If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
14 # Read the global configuration file
15 # Check if the global configuration file exists
16 if [ ! -e globalconfig ]; then
17 echo "Warning: The global config file globalconfig does not exist."
22 # Read the node-specific configuration file (TORRENT_FILE)
23 # Check if the node-specific configuration file exists
24 if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
25 echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
27 source ../ClientWorkingFolders/TmpLogs/node_config
30 cd $WORKING_FOLDER_REL_PATH/TorrentsAndData/
32 LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent --nodht --nohashcheck $TORRENT_FILE