<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Transmission All-in-One manage script</title>
		<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script</link>
		<description>Posts in the discussion thread &quot;Transmission All-in-One manage script&quot; - All features someone needs from Transmission</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 19 Apr 2026 18:16:15 +0000</lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-937122</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-937122</link>
				<description></description>
				<pubDate>Mon, 29 Nov 2010 14:09:54 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Testowitz,</p> <p>1. I have not yet upgraded to latest version as I don't want to take a risk having unstable envirounment again (this was true for 1.92 up to 2.04). I have noot seen new features introduced worth upgrating. Is there a compatibility issue of my script with 2.12? If yes - this will push me towards.</p> <p>2. New versions are definately made to deliver new features and fix bugs, but it also use to bring new bugs. I would say that you can call release as good or bad analyzing ratio of fixed old bugs/introduced new bugs. As far I know by reading historical data - Transmission was getting better and better untill 1.92 when the number of crashes got much higher rate comparing to new features. For some reason, many users, including myself, have found versions 1.92-2.03 (not sure about next) as not worth upgrading from 1.91 as they have reduced total stable working time of daemon. No matter how cool new features are - if the software keeps crashing - you are not happy. It will change someday and there will be (if not already) new stable version worth upgrading. I could check not earlier than late December.</p> <p>Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-935700</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-935700</link>
				<description></description>
				<pubDate>Sat, 27 Nov 2010 12:24:01 +0000</pubDate>
				<wikidot:authorName>testowitz</wikidot:authorName>				<wikidot:authorUserId>521543</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Pavel,<br /> Thanks for sharing your effort&#8230;<br /> I was wondering about 2 things&#8230;</p> <p>1. Do you have intention to make your script compatible to the latest Transmission version?<br /> 2. Are the latter versions of transmission really better than the previous ones, because I always thought that point of making new version is that it brings fixes and better resource control?</p> <p>Thanks in advance</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-915860</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-915860</link>
				<description></description>
				<pubDate>Thu, 04 Nov 2010 18:37:18 +0000</pubDate>
				<wikidot:authorName>vovas</wikidot:authorName>				<wikidot:authorUserId>578390</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>After some experiments with this script and new versions of transmission I have made some conclusions:</p> <ol> <li>I was roll-back to 1.91 version of transmission.</li> <li>I was switched off all cron activity concerned to transmission.</li> </ol> <p>As result I have stable system during last 2 days. That is record for long-long time before.<br /> Even my big torrent with 140&#160;GB size is already checked and continues downloading process. Thanks God seeders are still alive! :-)</p> <p>Maybe this kind of solution can help someone from this thread.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-910034</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-910034</link>
				<description></description>
				<pubDate>Thu, 28 Oct 2010 19:04:57 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Babbelut,</p> <p>There is no need to use any external permission correction since there is a built-it feature of Transmission Daemon to set<br /> umask to every file it creates. More details you can find <a href="https://trac.transmissionbt.com/wiki/EditConfigFiles">here</a> next to umask property.</p> <p>So:<br /> chmod 755 (umask 022) would be 18 in json<br /> chmod 775 (umask 002) would be 2 in json<br /> chmod 777 (umask 000) would be 0 in json</p> <p>I recommend using 0 and enjoy your torrents :)</p> <p>Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-909735</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-909735</link>
				<description></description>
				<pubDate>Thu, 28 Oct 2010 10:49:12 +0000</pubDate>
				<wikidot:authorName>babbelut</wikidot:authorName>				<wikidot:authorUserId>312850</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Pavel,</p> <p>I found that the ratio was the issue :)<br /> I disabled seeding in my json-file because I didnt know what this was :) I changed the values and it works!</p> <p>I still have one question :D:</p> <p>I want to move the file to a folder and change the &quot;chown&quot; and &quot;chmod&quot;: chmod 775 and chown root:www-data<br /> The moving part is already made by you :):):)<br /> How do I fix the chown and chmod part?</p> <p>tx!!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-909172</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-909172</link>
				<description></description>
				<pubDate>Wed, 27 Oct 2010 20:06:49 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello kingjm</p> <p>Check <a href="http://mybookworld.wikidot.com/forum/t-245729/transmission-1-93-crash-in-withe-light">here</a>, <a href="http://mybookworld.wikidot.com/forum/t-228815/transmission-1-92-web-gui-stops-responding-after-few-hours">here</a>, <a href="http://download.m0k.org/transmission/files/">here</a> or search for &quot;transmission_1.91-1_arm.ipk&quot;</p> <p>Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-909145</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-909145</link>
				<description></description>
				<pubDate>Wed, 27 Oct 2010 19:35:55 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello babbelut,</p> <p>I am glad you have fixed your issue #1. Regarding issue #2 - script is not removing your completed torrent from list as it did not hit Max Ratio (0.0777 out of 2.0000 seeded). You can see UNDER status next to your torrent, once it hits or overseeds - it will show OVER and it will then be removed.<br /> The question is &quot;Why it is STOPPED and not SEED&quot;. Have you set MAX_TO_SEED=0 ??? This is not good :)</p> <p>You have 2 options:<br /> 1) Being Nice - set MAX_TO_SEED to reasonable number greater than 0 and seed downloaded torrent to hit ratio 2.0 and then script will stop and remove torrent from list.<br /> 2) Being Selfish - Edit Transmission config and set &quot;ratio-limit&quot; to something less than 1 or even 0, so that once torrent is downloaded it will be over limit rightaway.</p> <p>Please choose option 1 :)</p> <p>Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-909033</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-909033</link>
				<description></description>
				<pubDate>Wed, 27 Oct 2010 16:28:15 +0000</pubDate>
				<wikidot:authorName>kingjm</wikidot:authorName>				<wikidot:authorUserId>605012</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have upgraded to 2.11-1 and it is not stable. I cannot find the ipkg of 2.04. Could someone point me in the right direction?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-907594</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-907594</link>
				<description></description>
				<pubDate>Tue, 26 Oct 2010 05:31:16 +0000</pubDate>
				<wikidot:authorName>babbelut</wikidot:authorName>				<wikidot:authorUserId>312850</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Pavel,</p> <p>Version is 2.04. I solved issue 1 -&gt; logfile dir. was incorrect :) I hope this stays stable&#8230;</p> <p>Issue 2: The file is paused but not removed&#8230;</p> <p>transmission queue<br /> watch: transmission-daemon is running<br /> awk: warning: escape sequence '\)' treated as plain ')'<br /> 1&#160;069% DOWNLOAD 0.0728 UNDER<br /> 2&#160;064% DOWNLOAD 0.1267 UNDER<br /> 3&#160;012% DOWNLOAD 0.0452 UNDER<br /> 4&#160;100% STOPPED 0.0777 UNDER<br /> Max Ratio: 2.0000<br /> Downloading: 3 (max 30)(to start 27)<br /> Seeding: 0 (max 0)(to start 0)<br /> Stopped: 1 and Stopped on 100: 1<br /> Torrent IDs to Stop:<br /> Torrent IDs to Start:<br /> Torrent IDs to Remove<br /> Execution Time: 2 secs.</p> <p>The file is in my complete folder but stays in pause in the list&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-907410</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-907410</link>
				<description></description>
				<pubDate>Tue, 26 Oct 2010 01:19:33 +0000</pubDate>
				<wikidot:authorName>boondoklife</wikidot:authorName>				<wikidot:authorUserId>338185</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yea, I think you did. I just wanted to make sure that there was not some way to gently stop the service that I did not know of =].</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-907211</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-907211</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2010 20:02:01 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello babbelut,</p> <p>1) Lets start with Transmission start problem. I have tested this script only on transmission daemon versions 1.91 and 2.03. What version are you using? You can find out by running the following command:</p> <div class="code"> <pre><code>transmission-daemon -V</code></pre></div> <br /> If you are running earlier or later versions there is a chance that some of default options I am settings are not supported and thus you are seeing Usage message. Otherwise, your customizations to script may break syntax or whatever. <p>2) Removing torrent issue. The main logic to move and remove torrent from the list is:</p> <ul> <li>Torrent has to be 100% downloaded</li> <li>Torrent has to seed as much as reaching MAX RATIO (by default 2.0)</li> <li>Once it is seeded over MAX RATION script will attempt to:</li> <li>* stop (pause) torrent</li> <li>* move data to Complete folder</li> <li>* next run it will check if completed torrents are located in Completed folder and it it is there (meaning it was successfully moved) - it will remove torrent from list</li> </ul> <p>First issue might affecting the second one, so please start with issue 1)<br /> If you can not fix it - send me PM with exact script you have.</p> <p>Cheers,<br /> Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-907197</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-907197</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2010 19:43:09 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello boondoklife,</p> <p>Let me separate scenarios into 2 parts:</p> <p>1) Watch - ensuring Transmission is responsive.<br /> In this case, script is checking if process is in memory and if it is not - starts it.<br /> If it is in memory - scripts attempts to receive transmission session information - the most lightweighted command.<br /> If transmission-remote return an error - script will send HUP signal via killall to force daemon restart via internal routin.<br /> If transmission-remote does not return an error - script assumes it is OK.<br /> This watch function will not attempt to completely stop and start daemon as HUP in most cases will help, but in minor cases it will continue to hang untill next scheduled &quot;2 hours&quot; restart.</p> <p>2) Stop/Restart procedure<br /> This routin is called only using parameters stop/restart.<br /> In this case, script will attempt to gently kill daemon letting it close all the threads taking its time. Every 5 seconds script will check if daemon process is still in memory and if it still is - will send another gently kill command and so on.<br /> If script has counted more than 20 times (5 seconds hold after each) and daemon is still running - it will stop being nice and will send force kill command. It will again start checking process and keep sending force kill every 3 seconds for a while and then leave it as is.</p> <p>The reason why script is so patient in the first place is to mitigate chances &quot;breaking hash&quot; and thus having transmission re-check.</p> <p>Your script is doing similar things. I hope I have answered your question. If not - please expand your question.</p> <p>Cheers,<br /> Pavel.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-907074</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-907074</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2010 17:12:26 +0000</pubDate>
				<wikidot:authorName>babbelut</wikidot:authorName>				<wikidot:authorUserId>312850</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,</p> <p>I installed the script and I love it. Although I have a few issues:</p> <p>- &quot;transmission start&quot; seems not to work. It always tells me that &quot;usage: transmission-daemon [options]&quot; and it does not start &#8230;</p> <p>- when a torrent is finished, the file is moved to the correct directory and the dowload is &quot;paused&quot;, but the torrent is not removed.</p> <p>tx for helping me!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-906434</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-906434</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2010 01:12:54 +0000</pubDate>
				<wikidot:authorName>boondoklife</wikidot:authorName>				<wikidot:authorUserId>338185</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I do understand what you are saying, but it looks like you script does a simple killall transmission-da and then if that does not work it does a killall -9 transmission-da. This is no different then what my init script does or am I missing something.</p> <div class="code"> <pre><code>killall transmission-da 2&gt;/dev/null</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-906343</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-906343</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2010 22:27:16 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello boondoklife,</p> <p>Thank you for your question. The answer is simple:<br /> When the daemon is not responding - it is already late - restart is a <strong>reactive measure</strong> to restore functionality and in THIS case - it will not terminates gentely and Transmission will re-check active torrents once will be started again - takes a lot of time.<br /> Restarting daemon while it is still responsive is a <strong>proactive measure</strong> that will not lead to re-check active torrents once daemon will be back, while it will delay the time of freeze. Wasting 5 minutes every 2 hours for restart in long run is better than waiting for transmission to freeze and let it re-check active torrents that is taking ages on big files. My tests showed that in 2-3 minutes after restart initiated - daemon is again responding and in next 2 minutes - all active torrents are back on full speed to download and seed. NO RE-CHECKS as it has terminated gentely before that!</p> <p>The bungle include &quot;watch&quot; function (also triggered with &quot;queue&quot; function) - that is checking if service is responding and if not - is sending HUP signal that force internal daemon routin to read config file that is helping in most cases to release the freeze.</p> <p>Hope my logic is clear. Cheers.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-906130</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-906130</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2010 17:54:41 +0000</pubDate>
				<wikidot:authorName>boondoklife</wikidot:authorName>				<wikidot:authorUserId>338185</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Why would you restart the service every 2 hours, that just seems like a waste of processor ticks not to mention torrent verification would be nuts. You could just check to see if the service is responsive and restart it if it is not.</p> <p>Here is a snippet from my transmission manager script:</p> <div class="code"> <pre><code># ************ # Let's see if the process fails to respond echo Connecting to service RESPONSE=$($REMOTE -l 2&gt;&amp;1 | awk '{print $4}' | grep Error) if [ &quot;$RESPONSE&quot; != &quot;&quot; ]; then echo Transmission returned error, restarting service $INIT rm /tmp/checktransmission exit fi RESPONSE=$($REMOTE -l) if [ &quot;$RESPONSE&quot; = &quot;&quot; ]; then echo Transmission returned error, restarting service $INIT rm /tmp/checktransmission exit fi</code></pre></div> <br /> In this case $REMOTE is the path to 'transmission-remote' and $INIT is the path to the init script to start and stop the service. Again this is just a snippet of my custom script so you may want to remove unneeded parts like the 'rm /tmp/checktransmission'
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-906122</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-906122</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2010 17:43:01 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Vovas,</p> <p>140&#160;GB torrent!!!111one? :))) Wow! I can not imagine how long it will take to check 140&#160;GB on MBWE. I have to admit - I assumed 2 hours restart frequency is optimal based on my personnal usage, however in your case - 2 hours should be increased to way higher value.</p> <p>Another question is why Transmission wants to check this big torrent in the first place. It will not re-check torrenet if Transmission has gentley terminated. So if if wants to check - you are screwed :) and have to spend numerous hours to let it complete. This process should not be interrupted, because it will start from the very beginning. I recommend simply commenting cron line that is rebooting daemon and when it is completed - enable it again.</p> <p>Cheers,<br /> Pavel.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-906106</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-906106</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2010 17:20:22 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Juggernaut,</p> <p>1) Regarding CRON job - I recommend trying the following command (perhaps after installing cron package):</p> <div class="code"> <pre><code>crontab -e</code></pre></div> <br /> This will open required cron file in VI editor, so that you can start editing it right away without thinking where the hell your cron file is located :)<br /> If you are new to VI editor - check the hotkeys in google cause it is far from intuitive for Windows guys.<br /> <a href="http://www.cs.rit.edu/~cslab/vi.html">http://www.cs.rit.edu/~cslab/vi.html</a> <p>2) Regarding starting automatically after boot - Yes, it is designed to start Transmission Daemon automatically after boot. If it does not start I recomend the following troubleshooting steps:</p> <ul> <li>Enable startup:</li> </ul> <div class="code"> <pre><code>transmission startup on</code></pre></div> <br /> and then reboot MBWE. <ul> <li>Check locations in the script - make sure they are valid to your system. If you figured out they are wrong - correct them and run install command once again. Then reboot to test.</li> </ul> <p>Hope it helps. Cheers.<br /> Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-903209</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-903209</link>
				<description></description>
				<pubDate>Thu, 21 Oct 2010 06:37:43 +0000</pubDate>
				<wikidot:authorName>vovas</wikidot:authorName>				<wikidot:authorUserId>578390</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Found new issue with big torrent (more than 140&#160;GB 8-) ). After system reboot this torrent should be checked. By each time system don't have time to check this big torrent untill each 2 hours check.</p> <p>How I can fix this issue?</p> <p>Maybe the best way is to stop all active torrents. Launch transmission in usual mode and give some time to verify all big torrent data.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-896582</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-896582</link>
				<description></description>
				<pubDate>Wed, 13 Oct 2010 21:13:53 +0000</pubDate>
				<wikidot:authorName>Juggernaut1987</wikidot:authorName>				<wikidot:authorUserId>592298</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Dear Pavel,<br /> I have succesfully installed your script and cron using the page here and this page <a href="http://mybookworld.wikidot.com/cron">http://mybookworld.wikidot.com/cron</a>. My drive also crashed after lets say 20 hours of seeding.<br /> The only thing that I cannot figure out is where to add the cron job lines. I dont know which file is the cron file that I have to edit so in short I dont know how to make cron jobs.</p> <p>Also am I correct in the assumption that your script starts automatically after I reboot my white light mbw together with all the other things I set up too boot with?</p> <p>Thanks for helping!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-894521</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-894521</link>
				<description></description>
				<pubDate>Mon, 11 Oct 2010 19:35:35 +0000</pubDate>
				<wikidot:authorName>vovas</wikidot:authorName>				<wikidot:authorUserId>578390</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello, Pavel!</p> <p>Thank you for your detailed explanations. Now it looks more realistic to solve all mine troubles with torrents download.<br /> So, now I finished with settings and I was follow to your advice.</p> <p>Time will tell. :-)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-891837</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-891837</link>
				<description></description>
				<pubDate>Fri, 08 Oct 2010 11:33:55 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,</p> <p>Please do not be confused about install feature of this script - it does NOT install Transmission Daemon itself, it only installs startup/shutdown scripts.<br /> I have let user to install Transmission Daemon himself beforehand since I do not posess the architecture of your system and package may vary.</p> <p>Please use another instructure to download and install Transmission Daemon packages on your system (I recommend 1.91 so far as the seniorest most stable version)</p> <p>After you have your Transmission installed - you may find advantage of using this manage script.<br /> Cheers.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-891832</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-891832</link>
				<description></description>
				<pubDate>Fri, 08 Oct 2010 11:29:07 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Vovas,</p> <p>On your questions, I believe:<br /> 1) If Transmission daemon is checking torrents after each reboot - it means it did not terminates itself nicely on shutdown. Your second question actually proves it as you even can not killall transmission-daemon process. Keep in mind that if transmission crashed or killed - it will practically start checking only those torrents that were in download state before it crached, so the less torrents in &quot;Download&quot; state you have - the sooner it will start downloading again.<br /> Moreover, original shutdown script was only waiting for 5 seconds for gentle shutdown before attempting to force kill transmission daemon. I found it too agressive and changed timeout to 100 seconds for gentle shutdown and timeout for killall to 30 seconds - this however will delay rebooting, but increase a chance that transmission will not re-check your torrents.</p> <p>2) When I first noticed that Transmission crashed my WBME on regular basis - I spent a lot of time finding &quot;a fix&quot;. When I last checked 2 weeks ago - fix was not yet available. Transmission was not working more than a day on my system, and on active torrents utilization- crached every 2-3 hours.<br /> I have solved my headache with several steps:</p> <ul> <li>I have set speed limints to download 3 mb/s and upload 1 mb/s - prolonged time of life</li> <li>I kept maximum torrents in download state under 2-3 - decreased time of checking after crash</li> <li>I set CRON job to restart transmission daemon every 2 hours - this is the most affective step strategically. Why? Read below:</li> </ul> <p>When you restart transmission when it is working fine (read: not yet crashed ;-) ) - it will take not more than 3-5 minutes to stop, start restore your bandwith activity. No file checking will be applied. While if you will let it work without restarts - it will crash sometime and you will be waiting ALOT for daemon to check the file before it will continue downloading. What is less painfull? I made my choice to regular restarts and I don't know pain anyore. I strongly recommends applying proposed CRON jobs in script.<br /> Cheers.</p> <p>Pavel</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-885776</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-885776</link>
				<description></description>
				<pubDate>Thu, 30 Sep 2010 21:15:46 +0000</pubDate>
				<wikidot:authorName>My book world user</wikidot:authorName>				<wikidot:authorUserId>453862</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>I can install transmission with this script :(<br /> I use install information but nothing. After transmission install command I see nothing, snif :'(</p> <p>I have desinstall <a href="http://highlevelbits.free.fr/index.php?option=com_content&amp;view=article&amp;id=82%3Atransmission-feature-pack-description&amp;catid=52%3Atransmission&amp;Itemid=69&amp;lang=en">old version of transmission</a> before try this new installation</p> <p>I need some help.<br /> Thanks :-)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-883824</guid>
				<title>Re: Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-883824</link>
				<description></description>
				<pubDate>Tue, 28 Sep 2010 17:06:09 +0000</pubDate>
				<wikidot:authorName>vovas</wikidot:authorName>				<wikidot:authorUserId>578390</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Works nice. Now my Transmission is more stable with new parameters.</p> <p>But I have two problem:</p> <p>1) Transmission checks undone torrents after each reboot;<br /> 2) Transmission daemon crashed after 18-20 hours of stable works. System even can't remove process by killall command under root account.</p> <p>Do you have any ideas about reasons for these two issues?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-270179#post-883022</guid>
				<title>Transmission All-in-One manage script</title>
				<link>http://mybookworld.wikidot.com/forum/t-270179/transmission-all-in-one-manage-script#post-883022</link>
				<description></description>
				<pubDate>Mon, 27 Sep 2010 17:00:30 +0000</pubDate>
				<wikidot:authorName>Pavel Kuzub</wikidot:authorName>				<wikidot:authorUserId>577077</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello Guys,</p> <p>I would like to share with you script that I was working on time-by-time for past month or two. I was originally using numerous scripts I found over the web to do what I need, but non of them were able to manage Transmission queue on My Book due to the bug related to this system that prevent showing torrent status (Stopped/Download/Seed) correctly from transmission-remote list output.<br /> So I start developing my own script to use debug mode of Transmission Remote and parse JSON within bash to properly identify torrent state and to apply manage logic. Finally I end-up with single script to do everything I would think of someone would need from Transmission.</p> <p>Let's call it <strong>Transmission All-in-One manage script</strong>. Version 1.0</p> <p><strong>Features:</strong></p> <ul> <li>Install/UnInstall startup and shutdown scripts (overwrites default Optware scripts)</li> <li>Enable/Disable startup of Transmission on boot as check flag</li> <li>Start/Stop/ReStart of Transmission</li> <li>Stability fix by setting EVENT_NOEPOLL=1; EVENT_NOEVPORT=1; EVENT_NODEVPOLL=1</li> <li>Updating Blocklist from download.m0k.org</li> <li>Edit Transmission config file and if changed force Transmission to re-read config file</li> <li>Watch Transmission and Restart if not responding</li> <li>Status of torrents in Transmission Remote native output format</li> <li>Torrents Queue manage: <ul> <li>start and stop torrents according to MAX_TO_DOWNLOAD and MAX_TO_SEED values</li> <li>stop seeding once Max Ratio is reached</li> <li>respects ratio-limit from Transmission config file</li> <li>move torrent data to Complete folder once enough seeded and remove from Transmission list if succeeded</li> <li>use minimum calls to Transmission Remote</li> <li>watch check included</li> <li>overcome torrent Status bug on WD MyBook system by parsing JSON instead of regular list output</li> </ul> </li> </ul> <p><strong>Installation:</strong></p> <div class="code"> <pre><code>cd /opt/bin wget -O transmission http://pavel.kuzub.com/scripts/transmission chmod a+x transmission transmission install</code></pre></div> <p><strong>CRON Jobs:</strong></p> <div class="code"> <pre><code>#Transmission Queue Control every 5 minutes */5 * * * * /opt/bin/transmission queue #Transmission Restart every 2 hours as stability workaround 0 */2 * * * /opt/bin/transmission restart</code></pre></div> <p><strong>Usage:</strong></p> <div class="code"> <pre><code># Start Transmission transmission start # Stop Transmission transmission stop # Call Boot procedure transmission startup # Enable starting Transmission on boot procedure transmission startup on # Disable starting Transmission on boot procedure transmission startup off # Show Transmission Remote List transmission status # Restart Transmission transmission restart # Open VI (or another editor) to edit settings.json transmission edit # Watch Transmission and kick if needed transmission watch # Queue manage (for CRON) transmission queue # Install startup and shutdown scripts transmission install # Uninstall startup and shutdown scripts transmission uninstall # Show commands transmission usage</code></pre></div> <p><strong>Script Code:</strong></p> <div class="code"> <pre><code>#!/bin/sh # # Transmission All-in-One manage script. Version 1.00 # Tested with Transmission Daemon versions 1.90 and 2.03 on WD My Book World Edition White Light # Script by Pavel Kuzub. Some code is re-used from their respective owners. # On embedded systems consider installing the following packages: # ipkg install busybox-base # ipkg install busybox-links # # Full list of dependency is not available # # Installation: # wget -O transmission http://pavel.kuzub.com/scripts/transmission # chmod a+x transmission # transmission install # # Cron Jobs: # #Transmission Queue Control every 5 minutes # */5 * * * * /opt/bin/transmission queue # # #Transmission Restart every 2 hours as stability workaround # 0 */2 * * * /opt/bin/transmission restart # USAGETEXT=&quot;Usage: $0 (start|stop|startup|startup on|startup off|status|restart|edit|watch|queue|install|uninstall|usage)&quot; # start_time=$(date +%s) # Change below folders to match your own system folders # Log file for DEBUG LOGFILE=/DataVolume/Download/transmission-daemon.log # Move downloaded and fully seeded files to Completed folder COMPLETED_DATA_FOLDER=/DataVolume/Download/!Completed # Location of init.d folder on your system INITDIR=/etc/init.d # If using authentication specify Login and Pass REMOTE_LOGIN=admin REMOTE_PASS=password # Maximum simultaneous torrents in Download state MAX_TO_DOWNLOAD=3 # Maximum simultaneous torrents in Seed state MAX_TO_SEED=25 # Enable moving torrent data after reaching Max Ratio. Value 1/0 MOVE_AFTER_COMPLETE=1 # Enable dump to log file. Value 1/0 DEBUG=1 # # More system related options EDITOR=vi prefix=&quot;/opt&quot; INITSTARTSCRIPT=${INITDIR}/S90transmission INITSTOPSCRIPT=${INITDIR}/K10transmission PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin DAEMONNAME=transmission-daemon REMOTENAME=transmission-remote DAEMON=${prefix}/bin/${DAEMONNAME} REMOTE=${prefix}/bin/${REMOTENAME} CONFIGDIR=${HOME}/.config/transmission-daemon CONFIGFILE=${CONFIGDIR}/settings.json NOSTARTUPFILE=${CONFIGDIR}/.transmissionNoStartup test -x $DAEMON || exit 0 if [ -z &quot;$1&quot; ] ; then case `echo &quot;$0&quot; | sed 's:^.*/\(.*\):\1:g'` in S??*) rc=&quot;startup&quot; ;; K??*) rc=&quot;stop&quot; ;; *) rc=&quot;usage&quot; ;; esac else rc=&quot;$1&quot; fi myecho() { curtime=`date +&quot;[%H:%M:%S:000]&quot;` echo &quot;$curtime $1&quot; if [ ${DEBUG} -eq 1 ]; then echo &quot;$curtime $1&quot; &gt;&gt;$LOGFILE fi } start() { if [ -n &quot;`pidof $DAEMONNAME`&quot; ]; then myecho &quot;$DAEMONNAME is already running.&quot; else cd ${CONFIGDIR}/blocklists if [ $? -eq 0 ]; then find . -mtime +4 -type f -name level1 -exec rm {} \; if [ ! -f ${CONFIGDIR}/blocklists/level1 ]; then # update blocklist myecho &quot;Updating blocklist, ~4MB&quot; wget -q -O level1.gz http://download.m0k.org/transmission/files/level1.gz if [ -f level1.gz ]; then gunzip level1.gz if [ $? -eq 0 ]; then chmod go+r level1 else rm -f level1* fi fi fi cd - 2&gt;&amp;1 &gt;/dev/null fi myecho &quot;Starting Torrent client: $DAEMONNAME&quot; EVENT_NOEPOLL=1; export EVENT_NOEPOLL EVENT_NOEVPORT=1; export EVENT_NOEVPORT EVENT_NODEVPOLL=1; export EVENT_NODEVPOLL nice -n 19 $DAEMON -g ${CONFIGDIR} -e $LOGFILE fi } watch() { if [ -n &quot;`pidof $DAEMONNAME`&quot; ]; then echo &quot;Watch: $DAEMONNAME is running&quot; $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -si &gt; /dev/null || killall -HUP $DAEMONNAME else start fi } stop() { if [ -n &quot;`pidof $DAEMONNAME`&quot; ]; then myecho &quot;Stopping Torrent client: $DAEMONNAME&quot; n=1 while true; do killall $DAEMONNAME 2&gt; /dev/null sleep 1 [ ! -n &quot;`pidof $DAEMONNAME`&quot; ] &amp;&amp; break myecho &quot;Waiting for another 5 seconds. Attempt $n&quot; sleep 4 [ $n -gt 20 ] &amp;&amp; break let n+=1 done n=1 while true; do killall -9 $DAEMONNAME 2&gt; /dev/null sleep 1 [ ! -n &quot;`pidof $DAEMONNAME`&quot; ] &amp;&amp; break sleep 2 [ $n -gt 10 ] &amp;&amp; break let n+=1 done if [ -n &quot;`pidof $DAEMONNAME`&quot; ]; then myecho &quot;Termination of $DAEMONNAME was not successful, it keeps running&quot; else myecho &quot;$DAEMONNAME terminated successfuly&quot; fi else myecho &quot;$DAEMONNAME already stopped&quot; fi } startup() { if [[ -e $NOSTARTUPFILE ]]; then echo &quot;Transmission Daemon disabled on startup&quot; else start fi } startup_on() { echo &quot;Enabling Transmission Daemon on startup&quot; if [[ -e $NOSTARTUPFILE ]]; then rm &quot;$NOSTARTUPFILE&quot; fi } startup_off() { echo &quot;Disabling Transmission Daemon on startup&quot; touch &quot;$NOSTARTUPFILE&quot; } edit() { MD5BEFORE=`cat &quot;$CONFIGFILE&quot; | md5sum` myecho &quot;Starting $EDITOR to edit ${CONFIGFILE}&quot; $EDITOR &quot;${CONFIGFILE}&quot; MD5AFTER=`cat &quot;$CONFIGFILE&quot; | md5sum` if [ &quot;$MD5BEFORE&quot; = &quot;$MD5AFTER&quot; ]; then echo &quot;No changes to config file&quot; else myecho &quot;Sending SIGHUP to Transmission to reload config file&quot; killall -HUP $DAEMONNAME 2&gt; /dev/null fi } status() { $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -l } install() { echo &quot;Creating link: $INITSTARTSCRIPT&quot; ln -s -f &quot;$0&quot; &quot;$INITSTARTSCRIPT&quot; chmod a+x &quot;$INITSTARTSCRIPT&quot; echo &quot;Creating link: $INITSTOPSCRIPT&quot; ln -s -f &quot;$0&quot; &quot;$INITSTOPSCRIPT&quot; chmod a+x &quot;$INITSTOPSCRIPT&quot; } uninstall() { echo &quot;Removing: $INITSTARTSCRIPT&quot; rm &quot;$INITSTARTSCRIPT&quot; echo &quot;Removing: $INITSTOPSCRIPT&quot; rm &quot;$INITSTOPSCRIPT&quot; } queue() { MAX_RATIO=$(cat &quot;${CONFIGFILE}&quot; | grep \&quot;ratio-limit\&quot;: | tr -dc '[.0-9]') JSON=`$REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -b -l 2&gt;&amp;1 | grep &quot;{\&quot;arguments\&quot;:{\&quot;torrents\&quot;:&quot;` #Build data matrix in internal format. It will be used for all further references torrentStatus=`echo $JSON | awk '{n=split($0,a,&quot;[&quot;); text=&quot;&quot;; for (i=2;i&lt;=n;i++) text=text a[i]; print text} ' | awk '{n=split($0,a,&quot;]&quot;); text=&quot;&quot;; for (i=1;i&lt;n;i++) text=text a[i]; print text} ' | sed -e 's/[{]//g' | awk -v max_ratio=&quot;$MAX_RATIO&quot; '{n=split($0,a,&quot;\},&quot;); for (i=1;i&lt;=n;i++) { id=&quot;&quot;;left=&quot;&quot;;total=&quot;&quot;;status=&quot;&quot;;ratio=&quot;&quot;;percent=&quot;&quot; m=split(a[i],b,&quot;,&quot;) for (t=1;t&lt;=m;t++) { o=split(b[t],c,&quot;:&quot;) if (c[1]==&quot;\&quot;id\&quot;&quot;)id=c[2] if (c[1]==&quot;\&quot;leftUntilDone\&quot;&quot;)left=c[2] if (c[1]==&quot;\&quot;sizeWhenDone\&quot;&quot;)total=c[2] if (c[1]==&quot;\&quot;status\&quot;&quot;){ if (c[2]==&quot;1&quot;) status=&quot;CHECK_WAIT&quot; else if (c[2]==&quot;2&quot;) status=&quot;CHECK&quot; else if (c[2]==&quot;4&quot;) status=&quot;DOWNLOAD&quot; else if (c[2]==&quot;8&quot;) status=&quot;SEED&quot; else if (c[2]==&quot;16&quot;) status=&quot;STOPPED&quot; else status=c[2] } if (c[1]==&quot;\&quot;uploadRatio\&quot;&quot;)ratio=c[2] } if (left==0) percent=100 else if (total&gt;0){ percent=((total-left)/total)*100 split(percent,percent_split,&quot;.&quot;) percent=percent_split[1] } else percent=000 for (l=length(percent);l&lt;3;l++) percent=&quot;0&quot;percent if(ratio&gt;=max_ratio) ratio_status=&quot;OVER&quot; else ratio_status=&quot;UNDER&quot; print id&quot; &quot;percent&quot;% &quot;status&quot; &quot;ratio&quot; &quot;ratio_status }}' | sed -e 's/[}]//g'` #Make status calculations count_download=`echo &quot;$torrentStatus&quot; | grep -e 'DOWNLOAD' -e 'CHECK' | wc -l` count_seed=`echo &quot;$torrentStatus&quot; | grep SEED | wc -l` count_stopped=`echo &quot;$torrentStatus&quot; | grep STOPPED | wc -l` count_stopped_100=`echo &quot;$torrentStatus&quot; | grep STOPPED | grep 100% | wc -l` if [ $MAX_TO_DOWNLOAD -gt $count_download ] then count_download_to_start=$(($MAX_TO_DOWNLOAD - $count_download)) else count_download_to_start=0 fi if [ $MAX_TO_SEED -gt $count_seed ] then count_seed_to_start=$(($MAX_TO_SEED - $count_seed)) else count_seed_to_start=0 fi #Echo data for user echo &quot;$torrentStatus&quot; echo &quot;Max Ratio: $MAX_RATIO&quot; echo &quot;Downloading: $count_download (max $MAX_TO_DOWNLOAD)(to start $count_download_to_start)&quot; echo &quot;Seeding: $count_seed (max $MAX_TO_SEED)(to start $count_seed_to_start)&quot; echo &quot;Stopped: $count_stopped and Stopped on 100: $count_stopped_100&quot; #Logic part downloads_to_stop=`echo &quot;$torrentStatus&quot; | grep DOWNLOAD | sort -r -k 2,2 | tail -n +$((MAX_TO_DOWNLOAD+1)) | \ awk '{print $1;}' | tr '\n' ',' | sed 's/\(.*\)./\1/'` seeds_to_stop=`echo &quot;$torrentStatus&quot; | grep SEED | sort -r -k 4,4 | tail -n +$((MAX_TO_SEED+1)) | \ awk '{print $1;}' | tr '\n' ',' | sed 's/\(.*\)./\1/'` #check length and assign delimeter if [ ${#downloads_to_stop} -gt 0 -a ${#seeds_to_stop} -gt 0 ] then delim_to_stop=&quot;,&quot; else delim_to_stop=&quot;&quot; fi ids_to_stop=&quot;$downloads_to_stop$delim_to_stop$seeds_to_stop&quot; echo &quot;Torrent IDs to Stop: $ids_to_stop&quot; downloads_to_start=`echo &quot;$torrentStatus&quot; | grep STOPPED | grep -v 100% | sort -k 2,2 | tail -n $((count_download_to_start)) | \ awk '{print $1;}' | tr '\n' ',' | sed 's/\(.*\)./\1/'` seeds_to_start=`echo &quot;$torrentStatus&quot; | grep STOPPED | grep 100% | grep UNDER | sort -k 4,4 | tail -n $((count_seed_to_start)) | \ awk '{print $1;}' | tr '\n' ',' | sed 's/\(.*\)./\1/'` #check length and assign delimeter if [ ${#downloads_to_start} -gt 0 -a ${#seeds_to_start} -gt 0 ] then delim_to_start=&quot;,&quot; else delim_to_start=&quot;&quot; fi ids_to_start=&quot;$downloads_to_start$delim_to_start$seeds_to_start&quot; echo &quot;Torrent IDs to Start: $ids_to_start&quot; ids_to_remove_one_per_line=`echo &quot;$torrentStatus&quot; | grep -e 'STOPPED' -e 'SEED' | grep 100% | grep OVER | \ awk '{print $1;}'` ids_to_remove=`echo &quot;$torrentStatus&quot; | grep -e 'STOPPED' -e 'SEED' | grep 100% | grep OVER | \ awk '{print $1;}' | tr '\n' ',' | sed 's/\(.*\)./\1/'` echo &quot;Torrent IDs to Remove: $ids_to_remove&quot; #Execute Actions if [ ${#ids_to_stop} -gt 0 ]; then myecho &quot;Stopping torrents: $ids_to_stop&quot; $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -t $ids_to_stop --stop fi if [ ${#ids_to_start} -gt 0 ]; then myecho &quot;Starting torrents: $ids_to_start&quot; $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -t $ids_to_start --start fi if [ ${#ids_to_remove} -gt 0 -a ${MOVE_AFTER_COMPLETE} -eq 1 ]; then myecho &quot;Moving torrents: $ids_to_remove&quot; $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -t $ids_to_remove --move &quot;$COMPLETED_DATA_FOLDER&quot; echo &quot;Removing torrents that are in Completed folder...&quot; for i in $ids_to_remove_one_per_line; do this_torrent_data_location=`$REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -t $i -i | awk '/Location/'|sed -e 's/ Location: //'` echo &quot;Location of torrent $i is: $this_torrent_data_location&quot; if [ &quot;$this_torrent_data_location&quot; = &quot;$COMPLETED_DATA_FOLDER&quot; ]; then myecho &quot;Removing Torrent $i from the list...&quot; $REMOTE -n $REMOTE_LOGIN:$REMOTE_PASS -t $i --remove fi done fi } case &quot;$rc&quot; in start) start ;; stop) stop ;; restart) stop start ;; startup) if [ &quot;$2&quot; = &quot;on&quot; ]; then startup_on elif [ &quot;$2&quot; = &quot;off&quot; ]; then startup_off else startup fi ;; edit) edit ;; status) status ;; watch) watch ;; queue) watch queue ;; install) install ;; uninstall) uninstall ;; *) echo ${USAGETEXT} ;; esac finish_time=$(date +%s) echo &quot;Execution Time: $((finish_time - start_time)) secs.&quot; exit 0</code></pre></div> <p><a href="http://pavel.kuzub.com/transmission-all-in-one-manage-script">My Weblog post</a></p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>