instrumentation/next-share: add starting scripts
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 19 Sep 2010 09:10:53 +0000 (12:10 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 19 Sep 2010 09:10:53 +0000 (12:10 +0300)
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

instrumentation/next-share/start-next-share [new file with mode: 0755]
instrumentation/next-share/start-swarm-plugin [new file with mode: 0755]

diff --git a/instrumentation/next-share/start-next-share b/instrumentation/next-share/start-next-share
new file mode 100755 (executable)
index 0000000..c93885d
--- /dev/null
@@ -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 (executable)
index 0000000..0e57823
--- /dev/null
@@ -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