From: Razvan Deaconescu Date: Fri, 30 Jul 2010 11:00:44 +0000 (+0300) Subject: ControlScripts: add seeder hrktorrent start script X-Git-Tag: classic-scenario-config~27 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=51644f28bd1884ddebbf72f6688842695542aad0;p=p2p-testing-infrastructure.git ControlScripts: add seeder hrktorrent start script --- diff --git a/ControlScripts/start_hrk_seeder.sh b/ControlScripts/start_hrk_seeder.sh new file mode 100755 index 0000000..d39c9e7 --- /dev/null +++ b/ControlScripts/start_hrk_seeder.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# +# 2010 Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# +# Bash script used to start a hrktorrent instance +# The script +# * changes current working directory to TorrentsAndData +# * starts a hrktorrent session - use LD_LIBRARY_PATH to point to +# libtorrent-rasterbar location +# * at the end deletes the downloaded data +# +# Script arguments: +# * .torrent file + +if [ ! $# -eq 1 ]; then + echo "usage: $0 torrent-file" + exit 1 +fi + +# Read the global configuration variables +source ../ConfigFiles/globalconfig.txt + +# Read arguments +TORRENT_FILE=$1 + +cd $WORKING_FOLDER_REL_PATH/TorrentsAndData/ + +LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent $WORKING_FOLDER_REL_PATH/TorrentsAndData/$TORRENT_FILE