<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: updated dns-323 bt download management scripts</title>
	<link>http://www.horto.ca/?p=16</link>
	<description>a system of organized chaos</description>
	<pubDate>Sun, 05 Sep 2010 21:24:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: Joe in VA</title>
		<link>http://www.horto.ca/?p=16#comment-11628</link>
		<dc:creator>Joe in VA</dc:creator>
		<pubDate>Tue, 22 Sep 2009 23:17:43 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-11628</guid>
		<description>@Brusko,
 I like the approach you have for moving scripts, but I was hoping to do something a little differently. 
WARNING:  Linux Noob :) 

I have my files for shows downloaded organized by show name.  The results of the download are something like 
"Kids Show S02E03.avi"
I'll have "Parents show 1 S03E01.avi" "Dad Show S01E01.avi" etc.

Once the show is 100% complete, I'd like to move it to a particular directory, Like this


/ffp/bin/transmission-remote -l &#124; grep Done &#124; grep 100% &#124; grep -v Ratio &#124; /ffp/bin/cut -c 70-&#124; while read i
do
ciel_ln=`find /mnt/HD_a2/Downloads -name "$i"`

If $i has 'Kids' in the name I want to move it to \TV\KidsShow folder.
If $i has 'Parent' in the name I want to move it to \TV\Parent folder.

I've been trying to get the right syntax for a substring, but just don't have it.

Any help would be appreciated..</description>
		<content:encoded><![CDATA[<p>@Brusko,<br />
 I like the approach you have for moving scripts, but I was hoping to do something a little differently.<br />
WARNING:  Linux Noob <img src='http://www.horto.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have my files for shows downloaded organized by show name.  The results of the download are something like<br />
&#8220;Kids Show S02E03.avi&#8221;<br />
I&#8217;ll have &#8220;Parents show 1 S03E01.avi&#8221; &#8220;Dad Show S01E01.avi&#8221; etc.</p>
<p>Once the show is 100% complete, I&#8217;d like to move it to a particular directory, Like this</p>
<p>/ffp/bin/transmission-remote -l | grep Done | grep 100% | grep -v Ratio | /ffp/bin/cut -c 70-| while read i<br />
do<br />
ciel_ln=`find /mnt/HD_a2/Downloads -name &#8220;$i&#8221;`</p>
<p>If $i has &#8216;Kids&#8217; in the name I want to move it to \TV\KidsShow folder.<br />
If $i has &#8216;Parent&#8217; in the name I want to move it to \TV\Parent folder.</p>
<p>I&#8217;ve been trying to get the right syntax for a substring, but just don&#8217;t have it.</p>
<p>Any help would be appreciated..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: km</title>
		<link>http://www.horto.ca/?p=16#comment-8177</link>
		<dc:creator>km</dc:creator>
		<pubDate>Thu, 23 Jul 2009 14:12:35 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-8177</guid>
		<description>Hey,

good work, much appreciated.  thats all.

km</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>good work, much appreciated.  thats all.</p>
<p>km</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brusko</title>
		<link>http://www.horto.ca/?p=16#comment-7805</link>
		<dc:creator>Brusko</dc:creator>
		<pubDate>Sun, 19 Jul 2009 12:41:28 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-7805</guid>
		<description>Hello Stekam (Feb 5th, 2009 at 5:40 am) and all here. I also thought how to
"Move completed downloaded files to another directory …" (for examlpe Volume_1\BT\complete directory same with BitTorrent directory made by D-Link). Because of numbers of torrents I split downloading/ed torrents into the categories/dictionaries (#cart-cartoons, #music, #doc-documentary etc.) 
I have ...\Volume_1\BT\torrents_to_add\:
#cart\
#clip\
#cz&#38;sk\
#dab\
#doc\
#dvd\
#hd\
#install\
#mp3\
#ser\
#tit\
#xxx\ 
and same structure in ...\Volume_1\BT\complete\
#cart\
#clip\
#cz&#38;sk\
#dab\
#doc\
#dvd\
#hd\
#install\
#mp3\
#ser\
#tit\
#xxx\ 
For adding and moveing compled download I use same torrentwatchdog.sh where I add "moving part". I have just one problem and that is this script move files when I'm loged in. When it is runnig by cron schedule it just add new torrent for downloading stop completed but don't move completed. I heve to log in time to time and run this script. One more feature. When I move downloaded file or directory I create simlink to prevent Transmission download same torrent one more time, after restarting download. So when i want to start seeding some torrent I can just enable seeding in Transmission GUI (of coure i have to disable scheduled stoping of seeding in this script).

#!/bin/sh
###########################################################################
# script to monitor a selection of directories for new .torrent files.
# if found, queue them up in transmission 
# and when done downloading, pause the torrent  
# w 10/20/08 horto
# u 10/29/08 horto - implmented "make transmission stop after seeding 1:1"
# u 10/29/08 horto - v2.0, do away with /torrents and /incoming dirs, and
#                    just monitor /media/movies, /media/TV and /media/mp3
#                    directories for torrents so I don't have to manually
#                    organize everything later!
# u 11/06/08 horto - fixed bug with awk not being found via cron
###########################################################################
TORRENTDIRS="/mnt/HD_a2/BT/torrents_to_add /mnt/HD_a2/BT/torrents_to_add/\#cart /mnt/HD_a2/BT/torrents_to_add/\#clip /mnt/HD_a2/BT/torrents_to_add/\#cz\&#38;sk /mnt/HD_a2/BT/torrents_to_add/\#dab /mnt/HD_a2/BT/torrents_to_add/\#doc /mnt/HD_a2/BT/torrents_to_add/\#dvd /mnt/HD_a2/BT/torrents_to_add/\#hd /mnt/HD_a2/BT/torrents_to_add/\#install /mnt/HD_a2/BT/torrents_to_add/\#mp3 /mnt/HD_a2/BT/torrents_to_add/\#ser /mnt/HD_a2/BT/torrents_to_add/\#tit /mnt/HD_a2/BT/torrents_to_add/\#xxx"
LOG=/mnt/HD_a2/BT/torrentwd.log
LOG2=/mnt/HD_a2/BT/torrentmv.log
LOG3=/mnt/HD_a2/BT/debugmv.log
echo "" &#62; $LOG3

TRANSMISSION_REMOTE=/ffp/bin/transmission-remote

# check each incoming TORRENTDIR for new .torrents
for DIR in $TORRENTDIRS; do
  for FILE in $DIR/*.torrent; do
  
    # set download dir to current working dir
    $TRANSMISSION_REMOTE -w $DIR
    
    # pick out .torrent files and queue them up
    if [ "$FILE" != "$DIR/*.torrent" ]; then
        echo [`date`] "$FILE" added to queue. &#62;&#62; $LOG
        $TRANSMISSION_REMOTE -a "$FILE"
        rm "$FILE"
        echo [`date`] "$FILE" deleted. &#62;&#62; $LOG
        sleep 1
    fi
  done
done

# stop completed downloads when "Seeding"
#for i in `/ffp/bin/transmission-remote -l &#124; grep Done &#124; grep Seeding &#124; grep -v Ratio &#124; /ffp/bin/awk '{print $1}'"`; do

# stop completed downloads when "100%"
for i in `/ffp/bin/transmission-remote -l &#124; grep Done &#124; grep 100% &#124; grep -v Ratio &#124; grep -v Stopped &#124; /ffp/bin/awk '{print $1}'`; do
  echo [`date`] stopping torrent id $i &#62;&#62; $LOG
  $TRANSMISSION_REMOTE -t $i -S
done

# move completed downloads
/ffp/bin/transmission-remote -l &#124; grep Done &#124; grep 100% &#124; grep -v Ratio &#124; /ffp/bin/cut -c 70-&#124; while read i
do 
  ciel_ln=`find /mnt/HD_a2/BT/complete/ -name "$i"` &#62;&#62; $LOG2
  echo ciel_ln "$ciel_ln" meno "$i" &#62;&#62; $LOG3
  if [ "$ciel_ln" == "" ]; then
	zdroj_org=`find /mnt/HD_a2/BT/torrents_to_add/ -name "$i"` &#62;&#62; $LOG2
	echo zdroj_org "$zdroj_org" meno "$i" &#62;&#62; $LOG3
	if [ "$zdroj_org" != "" ]; then
		ciel_ln=`echo "$zdroj_org" &#124; sed 's/torrents_to_add/complete/g' &#124; awk -F"\$i" '{print $1}'` &#62;&#62; $LOG2
		echo ciel_ln "$ciel_ln" meno "$i" &#62;&#62; $LOG3
		echo [`date`] moving "$zdroj_org" to "$ciel_ln" torrent &#62;&#62; $LOG2
		`mv "$zdroj_org" "$ciel_ln"`
		echo [`date`] moving completed torrent $i &#62;&#62; $LOG3
		ciel_ln=`echo "$zdroj_org" &#124; sed 's/torrents_to_add/complete/g'` &#62;&#62; $LOG2
		echo [`date`] create link "$ciel_ln" to "$zdroj_org" &#62;&#62; $LOG2
		`ln -s "$ciel_ln" "$zdroj_org"`
	 fi
   fi
done

exit 0</description>
		<content:encoded><![CDATA[<p>Hello Stekam (Feb 5th, 2009 at 5:40 am) and all here. I also thought how to<br />
&#8220;Move completed downloaded files to another directory …&#8221; (for examlpe Volume_1\BT\complete directory same with BitTorrent directory made by D-Link). Because of numbers of torrents I split downloading/ed torrents into the categories/dictionaries (#cart-cartoons, #music, #doc-documentary etc.)<br />
I have &#8230;\Volume_1\BT\torrents_to_add\:<br />
#cart\<br />
#clip\<br />
#cz&amp;sk\<br />
#dab\<br />
#doc\<br />
#dvd\<br />
#hd\<br />
#install\<br />
#mp3\<br />
#ser\<br />
#tit\<br />
#xxx\<br />
and same structure in &#8230;\Volume_1\BT\complete\<br />
#cart\<br />
#clip\<br />
#cz&amp;sk\<br />
#dab\<br />
#doc\<br />
#dvd\<br />
#hd\<br />
#install\<br />
#mp3\<br />
#ser\<br />
#tit\<br />
#xxx\<br />
For adding and moveing compled download I use same torrentwatchdog.sh where I add &#8220;moving part&#8221;. I have just one problem and that is this script move files when I&#8217;m loged in. When it is runnig by cron schedule it just add new torrent for downloading stop completed but don&#8217;t move completed. I heve to log in time to time and run this script. One more feature. When I move downloaded file or directory I create simlink to prevent Transmission download same torrent one more time, after restarting download. So when i want to start seeding some torrent I can just enable seeding in Transmission GUI (of coure i have to disable scheduled stoping of seeding in this script).</p>
<p>#!/bin/sh<br />
###########################################################################<br />
# script to monitor a selection of directories for new .torrent files.<br />
# if found, queue them up in transmission<br />
# and when done downloading, pause the torrent<br />
# w 10/20/08 horto<br />
# u 10/29/08 horto - implmented &#8220;make transmission stop after seeding 1:1&#8243;<br />
# u 10/29/08 horto - v2.0, do away with /torrents and /incoming dirs, and<br />
#                    just monitor /media/movies, /media/TV and /media/mp3<br />
#                    directories for torrents so I don&#8217;t have to manually<br />
#                    organize everything later!<br />
# u 11/06/08 horto - fixed bug with awk not being found via cron<br />
###########################################################################<br />
TORRENTDIRS=&#8221;/mnt/HD_a2/BT/torrents_to_add /mnt/HD_a2/BT/torrents_to_add/\#cart /mnt/HD_a2/BT/torrents_to_add/\#clip /mnt/HD_a2/BT/torrents_to_add/\#cz\&amp;sk /mnt/HD_a2/BT/torrents_to_add/\#dab /mnt/HD_a2/BT/torrents_to_add/\#doc /mnt/HD_a2/BT/torrents_to_add/\#dvd /mnt/HD_a2/BT/torrents_to_add/\#hd /mnt/HD_a2/BT/torrents_to_add/\#install /mnt/HD_a2/BT/torrents_to_add/\#mp3 /mnt/HD_a2/BT/torrents_to_add/\#ser /mnt/HD_a2/BT/torrents_to_add/\#tit /mnt/HD_a2/BT/torrents_to_add/\#xxx&#8221;<br />
LOG=/mnt/HD_a2/BT/torrentwd.log<br />
LOG2=/mnt/HD_a2/BT/torrentmv.log<br />
LOG3=/mnt/HD_a2/BT/debugmv.log<br />
echo &#8220;&#8221; &gt; $LOG3</p>
<p>TRANSMISSION_REMOTE=/ffp/bin/transmission-remote</p>
<p># check each incoming TORRENTDIR for new .torrents<br />
for DIR in $TORRENTDIRS; do<br />
  for FILE in $DIR/*.torrent; do</p>
<p>    # set download dir to current working dir<br />
    $TRANSMISSION_REMOTE -w $DIR</p>
<p>    # pick out .torrent files and queue them up<br />
    if [ &#8220;$FILE&#8221; != &#8220;$DIR/*.torrent&#8221; ]; then<br />
        echo [`date`] &#8220;$FILE&#8221; added to queue. &gt;&gt; $LOG<br />
        $TRANSMISSION_REMOTE -a &#8220;$FILE&#8221;<br />
        rm &#8220;$FILE&#8221;<br />
        echo [`date`] &#8220;$FILE&#8221; deleted. &gt;&gt; $LOG<br />
        sleep 1<br />
    fi<br />
  done<br />
done</p>
<p># stop completed downloads when &#8220;Seeding&#8221;<br />
#for i in `/ffp/bin/transmission-remote -l | grep Done | grep Seeding | grep -v Ratio | /ffp/bin/awk &#8216;{print $1}&#8217;&#8221;`; do</p>
<p># stop completed downloads when &#8220;100%&#8221;<br />
for i in `/ffp/bin/transmission-remote -l | grep Done | grep 100% | grep -v Ratio | grep -v Stopped | /ffp/bin/awk &#8216;{print $1}&#8217;`; do<br />
  echo [`date`] stopping torrent id $i &gt;&gt; $LOG<br />
  $TRANSMISSION_REMOTE -t $i -S<br />
done</p>
<p># move completed downloads<br />
/ffp/bin/transmission-remote -l | grep Done | grep 100% | grep -v Ratio | /ffp/bin/cut -c 70-| while read i<br />
do<br />
  ciel_ln=`find /mnt/HD_a2/BT/complete/ -name &#8220;$i&#8221;` &gt;&gt; $LOG2<br />
  echo ciel_ln &#8220;$ciel_ln&#8221; meno &#8220;$i&#8221; &gt;&gt; $LOG3<br />
  if [ &#8220;$ciel_ln&#8221; == &#8220;&#8221; ]; then<br />
	zdroj_org=`find /mnt/HD_a2/BT/torrents_to_add/ -name &#8220;$i&#8221;` &gt;&gt; $LOG2<br />
	echo zdroj_org &#8220;$zdroj_org&#8221; meno &#8220;$i&#8221; &gt;&gt; $LOG3<br />
	if [ &#8220;$zdroj_org&#8221; != &#8220;&#8221; ]; then<br />
		ciel_ln=`echo &#8220;$zdroj_org&#8221; | sed &#8217;s/torrents_to_add/complete/g&#8217; | awk -F&#8221;\$i&#8221; &#8216;{print $1}&#8217;` &gt;&gt; $LOG2<br />
		echo ciel_ln &#8220;$ciel_ln&#8221; meno &#8220;$i&#8221; &gt;&gt; $LOG3<br />
		echo [`date`] moving &#8220;$zdroj_org&#8221; to &#8220;$ciel_ln&#8221; torrent &gt;&gt; $LOG2<br />
		`mv &#8220;$zdroj_org&#8221; &#8220;$ciel_ln&#8221;`<br />
		echo [`date`] moving completed torrent $i &gt;&gt; $LOG3<br />
		ciel_ln=`echo &#8220;$zdroj_org&#8221; | sed &#8217;s/torrents_to_add/complete/g&#8217;` &gt;&gt; $LOG2<br />
		echo [`date`] create link &#8220;$ciel_ln&#8221; to &#8220;$zdroj_org&#8221; &gt;&gt; $LOG2<br />
		`ln -s &#8220;$ciel_ln&#8221; &#8220;$zdroj_org&#8221;`<br />
	 fi<br />
   fi<br />
done</p>
<p>exit 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.horto.ca/?p=16#comment-7454</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 15 Jul 2009 13:33:21 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-7454</guid>
		<description>@jumperson, 

try 0 */3 * * *</description>
		<content:encoded><![CDATA[<p>@jumperson, </p>
<p>try 0 */3 * * *</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jumperson</title>
		<link>http://www.horto.ca/?p=16#comment-7438</link>
		<dc:creator>jumperson</dc:creator>
		<pubDate>Wed, 15 Jul 2009 06:35:01 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-7438</guid>
		<description>Thanks for the reply Admin!  Looking at the link you posted, I can't seem to figure out a way to have something run every 3 hours.  Is it possible to schedule something with the cron job for every 3 hours?  Do you know what I should be putting for the format for that?

0 3 * * * is every day at 3am
3 * * * * is every 3 minutes past the hour...i think.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Thanks for the reply Admin!  Looking at the link you posted, I can&#8217;t seem to figure out a way to have something run every 3 hours.  Is it possible to schedule something with the cron job for every 3 hours?  Do you know what I should be putting for the format for that?</p>
<p>0 3 * * * is every day at 3am<br />
3 * * * * is every 3 minutes past the hour&#8230;i think.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.horto.ca/?p=16#comment-7157</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 11 Jul 2009 15:21:12 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-7157</guid>
		<description>@jumperson: 

0 * * * * is every hour on the hour
30 3 * * * is every day at 3:30am 

you can change the values to whatever you prefer.  see http://www.scrounge.org/linux/cron.html</description>
		<content:encoded><![CDATA[<p>@jumperson: </p>
<p>0 * * * * is every hour on the hour<br />
30 3 * * * is every day at 3:30am </p>
<p>you can change the values to whatever you prefer.  see <a href="http://www.scrounge.org/linux/cron.html" rel="nofollow">http://www.scrounge.org/linux/cron.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jumperson</title>
		<link>http://www.horto.ca/?p=16#comment-6829</link>
		<dc:creator>jumperson</dc:creator>
		<pubDate>Wed, 08 Jul 2009 03:51:18 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-6829</guid>
		<description>Is there a way to change the ratio from 1 to something else?  If I try and download something that has a lot of seeders and no leechers, the unpacker.sh script will never run.  Any way to change the script to check the status of it for being done downloading instead?

Also, the editcron.sh script which has the timing of when to check, does that mean it will pull the NAS out of sleep mode every hour on the hour?  And then again every 3 hours on the 30 minute mark?  Is that what the below means?  Or is it every hour on the hour and then every 3.5 hours?

/bin/echo “0 * * * * /ffp/var/scripts/torrentwatchdog.sh &#62;&#62; /mnt/HD_a2/logs/torrentwd.log 2&#62;&#38;1″ &#62;&#62; $CRONTXT
/bin/echo “30 3 * * * /ffp/var/scripts/unpacker.sh &#62;&#62; /mnt/HD_a2/logs/unpack.log 2&#62;&#38;1″ &#62;&#62; $CRONTXT</description>
		<content:encoded><![CDATA[<p>Is there a way to change the ratio from 1 to something else?  If I try and download something that has a lot of seeders and no leechers, the unpacker.sh script will never run.  Any way to change the script to check the status of it for being done downloading instead?</p>
<p>Also, the editcron.sh script which has the timing of when to check, does that mean it will pull the NAS out of sleep mode every hour on the hour?  And then again every 3 hours on the 30 minute mark?  Is that what the below means?  Or is it every hour on the hour and then every 3.5 hours?</p>
<p>/bin/echo “0 * * * * /ffp/var/scripts/torrentwatchdog.sh &gt;&gt; /mnt/HD_a2/logs/torrentwd.log 2&gt;&amp;1″ &gt;&gt; $CRONTXT<br />
/bin/echo “30 3 * * * /ffp/var/scripts/unpacker.sh &gt;&gt; /mnt/HD_a2/logs/unpack.log 2&gt;&amp;1″ &gt;&gt; $CRONTXT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.horto.ca/?p=16#comment-5274</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Mon, 15 Jun 2009 22:44:10 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-5274</guid>
		<description>Is there a way to delete a cron job completely on the DNS-323? I would like to manually run the torrentwatchdog script.

Thanks,
Matthew</description>
		<content:encoded><![CDATA[<p>Is there a way to delete a cron job completely on the DNS-323? I would like to manually run the torrentwatchdog script.</p>
<p>Thanks,<br />
Matthew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aizal</title>
		<link>http://www.horto.ca/?p=16#comment-4193</link>
		<dc:creator>Aizal</dc:creator>
		<pubDate>Wed, 06 May 2009 21:40:19 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-4193</guid>
		<description>I keep banging my head on the wall because of this error.
It turned out a simple fix solved the problem. I put the wrong password.

So, if you are using rpc authorization (username and password), then for every transmission-remote line, add -n username:passwd.


Now I got it working with Transmission 1.52.


BUT!

Whenever I put new torrents into the folder, it does not detect instantly.
It will only detect whenever I stop or start torrentwatchdog.sh. Any idea why?

The script deleted the torrent once it was queued, so I modify the script to move the torrent instead so in case there is something wrong, I can just copy the torrent again.

in torrentwatchdog.sh, I changed this part:
# pick out .torrent files and queue them up
if [ “$FILE” != “$DIR/*.torrent” ]; then
echo [`date`] “$FILE” added to queue. &#62;&#62; $LOG
$TRANSMISSION_REMOTE -a “$FILE”
rm “$FILE”
echo [`date`] “$FILE” deleted. &#62;&#62; $LOG
sleep 1
fi
done
done


to this:
    # pick out .torrent files and queue them up
    if [ "$FILE" != "$DIR/*.torrent" ]; then
        echo [`date`] "$FILE" added to queue. &#62;&#62; $LOG
        $TRANSMISSION_REMOTE -a "$FILE"
        mv "$FILE -f $USED_TORRENTS/$FILE"
        echo [`date`] "$FILE" moved to "$USED_TORRENTS". &#62;&#62; $LOG
        sleep 1
    fi
  done
done

Can you check my code so the file will actually moved?
(currently it does not moved)

Thanks.</description>
		<content:encoded><![CDATA[<p>I keep banging my head on the wall because of this error.<br />
It turned out a simple fix solved the problem. I put the wrong password.</p>
<p>So, if you are using rpc authorization (username and password), then for every transmission-remote line, add -n username:passwd.</p>
<p>Now I got it working with Transmission 1.52.</p>
<p>BUT!</p>
<p>Whenever I put new torrents into the folder, it does not detect instantly.<br />
It will only detect whenever I stop or start torrentwatchdog.sh. Any idea why?</p>
<p>The script deleted the torrent once it was queued, so I modify the script to move the torrent instead so in case there is something wrong, I can just copy the torrent again.</p>
<p>in torrentwatchdog.sh, I changed this part:<br />
# pick out .torrent files and queue them up<br />
if [ “$FILE” != “$DIR/*.torrent” ]; then<br />
echo [`date`] “$FILE” added to queue. &gt;&gt; $LOG<br />
$TRANSMISSION_REMOTE -a “$FILE”<br />
rm “$FILE”<br />
echo [`date`] “$FILE” deleted. &gt;&gt; $LOG<br />
sleep 1<br />
fi<br />
done<br />
done</p>
<p>to this:<br />
    # pick out .torrent files and queue them up<br />
    if [ &#8220;$FILE&#8221; != &#8220;$DIR/*.torrent&#8221; ]; then<br />
        echo [`date`] &#8220;$FILE&#8221; added to queue. &gt;&gt; $LOG<br />
        $TRANSMISSION_REMOTE -a &#8220;$FILE&#8221;<br />
        mv &#8220;$FILE -f $USED_TORRENTS/$FILE&#8221;<br />
        echo [`date`] &#8220;$FILE&#8221; moved to &#8220;$USED_TORRENTS&#8221;. &gt;&gt; $LOG<br />
        sleep 1<br />
    fi<br />
  done<br />
done</p>
<p>Can you check my code so the file will actually moved?<br />
(currently it does not moved)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aizal</title>
		<link>http://www.horto.ca/?p=16#comment-4187</link>
		<dc:creator>Aizal</dc:creator>
		<pubDate>Wed, 06 May 2009 15:08:35 +0000</pubDate>
		<guid>http://www.horto.ca/?p=16#comment-4187</guid>
		<description>By username and password, do you mean the one in settings.json? What if I did not set any?
So I add username and password and still get the error.
TORRENTDIRS="/mnt/HD_a2/media/movies /mnt/HD_a2/media/tv /mnt/HD_a2/media/mp3"
LOG=/mnt/HD_a2/logs/torrentwd.log
TRANSMISSION_REMOTE='/ffp/bin/transmission-remote -n nyunyu:742258' --&#62; is it " or ' ?

I tried this command and got the same error.
root@dlink-0A78F3:/mnt/HD_a2/ffp/var/scripts# /ffp/bin/transmission-remote -l
[22:54:41.871] JSON parser failed at line 1, column 1: "401: Unautho"
[22:54:41.875] transmission-remote: Unable to parse response "401: UnauthorizedUnauthorized User"


Can you give me the link to transmission v1.34?</description>
		<content:encoded><![CDATA[<p>By username and password, do you mean the one in settings.json? What if I did not set any?<br />
So I add username and password and still get the error.<br />
TORRENTDIRS=&#8221;/mnt/HD_a2/media/movies /mnt/HD_a2/media/tv /mnt/HD_a2/media/mp3&#8243;<br />
LOG=/mnt/HD_a2/logs/torrentwd.log<br />
TRANSMISSION_REMOTE=&#8217;/ffp/bin/transmission-remote -n nyunyu:742258&#8242; &#8211;&gt; is it &#8221; or &#8216; ?</p>
<p>I tried this command and got the same error.<br />
<a href="mailto:root@dlink-0A78F3:/mnt/HD_a2/ffp/var/scripts#">root@dlink-0A78F3:/mnt/HD_a2/ffp/var/scripts#</a> /ffp/bin/transmission-remote -l<br />
[22:54:41.871] JSON parser failed at line 1, column 1: &#8220;401: Unautho&#8221;<br />
[22:54:41.875] transmission-remote: Unable to parse response &#8220;401: UnauthorizedUnauthorized User&#8221;</p>
<p>Can you give me the link to transmission v1.34?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
