From: Razvan Deaconescu Date: Sun, 19 Sep 2010 09:10:53 +0000 (+0300) Subject: instrumentation/next-share: add starting scripts X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=fb8a4663b1aca3bdfd77b34dec157190ba5af2b9;p=cs-p2p-next.git instrumentation/next-share: add starting scripts start script for next-share (basic BitTorrent) and start script for swarm plugin (video-on-demand); sample run cases are displayed as comments in script files --- diff --git a/instrumentation/next-share/start-next-share b/instrumentation/next-share/start-next-share new file mode 100755 index 0000000..c93885d --- /dev/null +++ b/instrumentation/next-share/start-next-share @@ -0,0 +1,14 @@ +#!/bin/bash + +# +# Sample run: +# ./start-next-share ../../testing/torrent-files/fedora13-i386-DVD.torrent +# + +if test $# -ne 1; then + echo "Usage: $0 torrent_file" + exit 1 +fi + +torrent_file=$1 +PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py $torrent_file diff --git a/instrumentation/next-share/start-swarm-plugin b/instrumentation/next-share/start-swarm-plugin new file mode 100755 index 0000000..0e57823 --- /dev/null +++ b/instrumentation/next-share/start-swarm-plugin @@ -0,0 +1,14 @@ +#!/bin/bash + +# +# Sample run: +# ./start-swarm-plugin ../../testing/torrent-files/madonna-material-girl.avi.torrent +# + +if test $# -ne 1; then + echo "Usage: $0 video_torrent_file" + exit 1 +fi + +video_torrent_file=$1 +PYTHONPATH=. python BaseLib/Player/swarmplayer.py $video_torrent_file