From: P2P-Next User Date: Sun, 28 Nov 2010 16:27:49 +0000 (+0200) Subject: next-share: use quotes for proper escaping in start scripts X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=2129f72edd533f8b5af4e36dc52e352bb3b482dc;p=cs-p2p-next.git next-share: use quotes for proper escaping in start scripts --- diff --git a/instrumentation/next-share/start-next-share b/instrumentation/next-share/start-next-share index ed4874a..10b4e44 100755 --- a/instrumentation/next-share/start-next-share +++ b/instrumentation/next-share/start-next-share @@ -10,6 +10,7 @@ if test $# -ne 1; then exit 1 fi -torrent_file=$1 +torrent_file="$1" #PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p --download-limit 50 $torrent_file -PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p $torrent_file +echo "torrent_file = $1" +PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p "$torrent_file" diff --git a/instrumentation/next-share/start-swarm-player b/instrumentation/next-share/start-swarm-player index 0e57823..0dfc691 100755 --- a/instrumentation/next-share/start-swarm-player +++ b/instrumentation/next-share/start-swarm-player @@ -10,5 +10,5 @@ if test $# -ne 1; then exit 1 fi -video_torrent_file=$1 -PYTHONPATH=. python BaseLib/Player/swarmplayer.py $video_torrent_file +video_torrent_file="$1" +PYTHONPATH=. python BaseLib/Player/swarmplayer.py "$video_torrent_file"