<?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>automatically start\stop transmission</title>
		<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission</link>
		<description>Posts in the discussion thread &quot;automatically start\stop transmission&quot; - to save resources</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 14 Jun 2026 12:43:02 +0000</lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-905931</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-905931</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2010 12:42:00 +0000</pubDate>
				<wikidot:authorName>blackjancsi</wikidot:authorName>				<wikidot:authorUserId>332838</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK, now it's back (the wd.mirmana.com site). Ehm, Frater, sorry to bug you again, do you use trans_watchdog with the latest transmission (2.11)? I don't want to start messing around with it if the transmission output is completely different by now anyway&#8230;</p> <p>Thx,<br /> Janos</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-902930</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-902930</link>
				<description></description>
				<pubDate>Wed, 20 Oct 2010 22:48:31 +0000</pubDate>
				<wikidot:authorName>blackjancsi</wikidot:authorName>				<wikidot:authorUserId>332838</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi guys,</p> <p>the <a href="http://wd.mirmana.com/">http://wd.mirmana.com/</a> site is down. :-((( Can anyone let me have the content (S90transmission, trans_watchdog)? I just managed to get NTFS support for my added 2&#160;TB, but managed to loose all my scripts and settings by not properly backing up before the firmware upgrade&#8230; Ouch.<br /> Also, I am just curious, what would be the &quot;canon&quot; way of running transmission? An Optware install does not provide init.d scripts (nor a clear description of what one needs to do). If one of us is enthusiastic enough, it would be great to create a wiki page there (at transmissionbt.com) with a full howto (latest version is 2.11 by now).</p> <p>Cheers,<br /> Janos</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-826146</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-826146</link>
				<description></description>
				<pubDate>Sat, 10 Jul 2010 04:15:34 +0000</pubDate>
				<wikidot:authorName>Oxyz</wikidot:authorName>				<wikidot:authorUserId>516153</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>How can I do to download the torrents with privs so I can grab them from my LAN?<br /> tx</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-559699</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-559699</link>
				<description></description>
				<pubDate>Wed, 12 Aug 2009 15:19:54 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Sorry&#8230;&#8230;</p> <p>This watchdog wasn't meant as a serious project and I wrote it for myself in the 1st place.<br /> I can recommend Examdiff to load your current version and the new version and look at the code to see what I've done with it&#8230;..</p> <p>I didn't add any main features and all work I've done had to do with portability, sanity checks and bug fixes&#8230;&#8230;..</p> <p>You can also take a look at the new mkdvd, mvmovie and S90transmission where I also changed some code&#8230;</p> <p>In mvmovie I try to detect TV-series and put them in a proper directory&#8230;..</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-559446</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-559446</link>
				<description></description>
				<pubDate>Wed, 12 Aug 2009 06:13:49 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, I noticed you had a new version, and saw all the variables renamed, and came over here to tell you I wish you would post a changelog somewhere, so I would know what I'm getting into before i update&#8230; :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-531278</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-531278</link>
				<description></description>
				<pubDate>Sat, 11 Jul 2009 11:54:01 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I changed the code and all variables now have a prefix so you'll need to edit /opt/etc/trans_watchdog.conf again&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-531225</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-531225</link>
				<description></description>
				<pubDate>Sat, 11 Jul 2009 09:58:01 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, I have experienced it too and I can't find a reason for it.<br /> I checked the code and will do that again now&#8230;.</p> <p>I'm considering to change all variables with some prefix and just save these variables instead of this &quot;intelligent&quot; way.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-530516</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-530516</link>
				<description></description>
				<pubDate>Fri, 10 Jul 2009 13:35:27 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm getting a situation every so often where I have to edit the config file to get rid of options that aren't supposed to be added, such as path and pwd and a bunch of others, these variables cause the script to stop working correctly&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-511157</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-511157</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 12:16:31 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, I have been rather busy and haven't had time to report anything (and, really, nothing has happened to report, until now) but, the last couple of days something strange has been happening, I noticed that the activity LED was not showing activity anymore, which meant (I thought) that it had finished downloading all of my torrents, or something, but, when I looked in the directory where I drop torrents, there were still many that hadn't had .transmission added to the end, so, I SSH'd in and ran top, no transmission binaries running&#8230; I then saw trans_watchdog start, and it was displayed as this: trans_watchdog &lt;defunct&gt; &#8230; What does this mean? I checked the SCRIPTVER variable against the one in the script on the site, and they matched. when I run trans_watchdog from the CLI, it displays no messages, at all, just closes silently. nothing in the messages log out of the ordinary, and transmission unfortunately doesn't create a log file, unless run in foreground mode, so, no help there. I start transmission manually, and it runs for a bit before closing again. I had read that this can happen on a drive with errors, bad clusters, etc., so, I shut down samba umounted the drives and ran fsck, it seemed to finish with no errors or anything, so, I don't know what it could be. I'm going to try to wget the script again, just in case, but, I doubt that will fix it.</p> <p>Edit: I guess I'll have to wait, it seems the server that file is on is down..</p> <p>Edit2: server came back, and I got it, no change, but, I think it may have something to do with bash.</p> <p>Edit3: Seems my config file got set back to defaults, but, it wasn't complaining about not finding the correct directories&#8230; I think I have it fixed now.</p> <p>Edit4: it seems bash from ipkg doesn't play well with trans_watchdog, I removed it, and now the script seems to be running better, and no more &lt;defunct&gt;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-481688</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-481688</link>
				<description></description>
				<pubDate>Sun, 17 May 2009 15:00:29 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think you can surpress those messages, but I'm not sure.<br /> I'm using a directory structure for my cronjobs, just like fedora does&#8230;</p> <p>Maybe it can be done with the optware cron</p> <p>I had to run another eventlogger to surpress these messages (syslog-ng).<br /> I can't give you an exact howto as I did this a year ago and had to do some research before..</p> <p>In /etc/inittab you have to disable the normal syslogd<br /> #::respawn:/sbin/syslogd -s 400 -n -m 0<br /> #::shutdown:/usr/bin/killall syslogd</p> <p>and install with ipkg install syslog-ng a new one in optware&#8230;<br /> I have this config for it:<br /> cat /opt/etc/syslog-ng/syslog-ng.conf</p> <div class="code"> <pre><code># # Syslog-ng example configuration for for NSLU2 Unslung 3.x # # Copyright (c) 1999 anonymous # Copyright (c) 1999 Balazs Scheidler # $Id: syslog-ng.conf 5159 2007-01-12 20:37:44Z fcarolo $ # # Syslog-ng configuration file, compatible with default Debian syslogd # installation. # options { long_hostnames(off); sync(0); }; source src { pipe(&quot;/proc/kmsg&quot;);unix-stream(&quot;/dev/log&quot;); internal(); }; source net { udp(); }; destination authlog { file(&quot;/var/log/auth.log&quot;); }; destination syslog { file(&quot;/var/log/syslog&quot;); }; destination cron { file(&quot;/var/log/cron.log&quot;); }; destination daemon { file(&quot;/var/log/daemon.log&quot;); }; destination kern { file(&quot;/var/log/kern.log&quot;); }; destination lpr { file(&quot;/var/log/lpr.log&quot;); }; destination user { file(&quot;/var/log/user.log&quot;); }; destination uucp { file(&quot;/var/log/uucp.log&quot;); }; destination ppp { file(&quot;/var/log/ppp.log&quot;); }; destination mail { file(&quot;/var/log/mail.log&quot;); }; destination mailinfo { file(&quot;/var/log/mail.info&quot;); }; destination mailwarn { file(&quot;/var/log/mail.warn&quot;); }; destination mailerr { file(&quot;/var/log/mail.err&quot;); }; destination newscrit { file(&quot;/var/log/news/news.crit&quot;); }; destination newserr { file(&quot;/var/log/news/news.err&quot;); }; destination newsnotice { file(&quot;/var/log/news/news.notice&quot;); }; destination debug { file(&quot;/var/log/debug&quot;); }; destination messages { file(&quot;/var/log/messages&quot;); }; filter f_auth { facility(auth); }; filter f_authpriv { facility(auth, authpriv); }; #filter f_syslog { not facility(authpriv, mail, cron, user); }; filter f_cron { facility(cron) and not match(&quot;run-parts&quot;); }; filter f_daemon { facility(daemon); }; filter f_kern { facility(kern); }; filter f_lpr { facility(lpr); }; filter f_mail { facility(mail); }; filter f_user { facility(user); }; #filter f_uucp { facility(cron); }; #filter f_ppp { facility(local2); }; filter f_news { facility(news); }; #filter f_debug { not facility(auth, authpriv, news, mail); }; filter f_messages { not facility(auth, authpriv, mail, news, cron) and not program(syslog-ng); }; filter f_emergency { level(emerg); }; filter f_info { level(info); }; filter f_notice { level(notice); }; filter f_warn { level(warn); }; filter f_crit { level(crit); }; filter f_err { level(err); }; log { source(src); filter(f_authpriv); destination(authlog); }; log { source(src); filter(f_messages); destination(messages); }; #log { source(src); filter(f_syslog); destination(syslog); }; log { source(src); filter(f_cron); destination(cron); }; #log { source(src); filter(f_daemon); destination(daemon); }; #log { source(src); filter(f_kern); destination(kern); }; #log { source(src); filter(f_lpr); destination(lpr); }; log { source(src); filter(f_mail); destination(mail); }; #log { source(src); filter(f_user); destination(user); }; #log { source(src); filter(f_uucp); destination(uucp); }; log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; log { source(src); filter(f_news); filter(f_err); destination(newserr); }; log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; #log { source(src); filter(f_debug); destination(debug); }; #log { source(src); filter(f_ppp); destination(ppp); };</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-481605</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-481605</link>
				<description></description>
				<pubDate>Sun, 17 May 2009 12:06:49 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think unrar options should be added to config. I just downloaded my first torrent with rars in it (using this script), and, while I had forgotten to install unrar, and it failed, when I looked at your line in the script to see what options you used, I noticed a couple of things, one, it creates a directory using the filename, and, it unrars it to the same directory the rars are in (with the filename appended as the new directory) I'd prefer it unrarred to my final destination (since it won't be seeding it anyway), and possibly without creating a directory using the name of the original file. Although, that part might be OK, I'd rather be able to set those preferences.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-481592</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-481592</link>
				<description></description>
				<pubDate>Sun, 17 May 2009 11:47:34 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>May 17&#160;07:40:15 MediaServe user.notice transmission: Invalid Torrent ID</p> <p>getting a lot of this error, and still some of</p> <p>May 17&#160;07:35:07 MediaServe user.notice root: /usr/bin/trans_watchdog already running&#8230; this one will stop</p> <p>when it's downloading&#8230; also, any idea how to suppress</p> <p>May 17&#160;07:37:01 MediaServe cron.notice crond[3010]: USER root pid 18466 cmd /usr/bin/trans_watchdog</p> <p>I know it's running every minute as it should, so, I don't think it's necessary to fill messages up with these, is there some switch for cron that will prevent it from being logged?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-481510</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-481510</link>
				<description></description>
				<pubDate>Sun, 17 May 2009 05:56:57 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Seems to be running very well now, and I just had another idea, pausing torrents that go an amount of time without any activity if there is a torrent waiting in the torrents directory, and, when all torrents have finished, unpause paused torrents, this would prevent a file with less than 100% available, or without any seeders, or whatever, from jamming up the queue&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-480318</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-480318</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 16:44:13 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do not forget to enable it in the settings.json.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-480245</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-480245</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 14:58:02 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This was going to be another of my suggestions, good deal.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-480179</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-480179</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 13:06:05 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I also did a change in S90transmission where I download a blocklist&#8230;<br /> <a href="http://wd.mirmana.com/S90transmission">http://wd.mirmana.com/S90transmission</a></p> <p>Although I'm not sure if it really helps in any way.<br /> I guess it doesn't hurt to block some IP's</p> <p>I've seen some mails from, for instance Sony, claiming someone was downloading content of their copyrighted material. I doubt if such a blocklist prevents this, but hopefully it makes it less likely&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-480108</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-480108</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 10:39:58 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>So far, so good, I have even seen some messages saying that the torrent has reached (or exceeded) the ratio I set, and is being removed, as it should be, I still think you should look into using the built in seeding ratio limit, global Peers, and the finish script, 5 minutes isn't a terribly long time to wait, but, immediately could be better.. :)</p> <p>No torrents downloading, but about 27 seeding, and</p> <p>May 14&#160;22:19:02 MediaServe user.notice root: /usr/bin/trans_watchdog already running… this one will stop</p> <p>has not shown up once in the last few hours, so, i would say you have definitely improved it, as it was happening all the time (almost every 5-10 minutes) before, even with 1 or 2 seeding torrents and no downloading torrents.</p> <p>and, since I set a limit on global peers (-gpr) I have not had one single freeze, and the CPU/MEM usage has greatly reduced.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479993</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479993</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 06:50:08 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Good to hear&#8230;<br /> Please let me know if you have any premature endings of torrents&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479855</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479855</link>
				<description></description>
				<pubDate>Fri, 15 May 2009 02:39:08 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Seems to be going OK, but, I still get some</p> <p>May 14&#160;22:19:02 MediaServe user.notice root: /usr/bin/trans_watchdog already running&#8230; this one will stop</p> <p>although, it seems to happen a bit less.</p> <p>Edit: make that a lot less&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479624</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479624</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 21:44:13 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, sorry</p> <p>Made some more changes.<br /> It executes transmission-remote less than before and doesn't continue when it left in an error-state.<br /> This error-state is probably the reason why torrents are unwantedly removed&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479567</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479567</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 21:05:23 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>so, I need to move my config file, which is in /etc/ (because I have trans_watchdog in /usr/bin/) to /opt/etc/?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479169</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479169</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 13:57:28 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Before, I let the script decide if the conf should be placed in /etc or /opt/etc<br /> I now fixed it to /opt/etc (you can still use the -c parameter to your own config-file)</p> <p>In time I will look to transmissioncli</p> <p>I hope thinks have settled down now (did do a lot of moving)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479086</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479086</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 11:44:39 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just noticed transmissioncli (I don't recall seeing it before I upgraded transmission, although, i could be wrong) but, looking at it's help page</p> <p><a href="http://linux.die.net/man/1/transmissioncli">http://linux.die.net/man/1/transmissioncli</a></p> <p>I see that you can specify a script to run on finish</p> <p>-f, &#8212;finish script<br /> Specifies a shell script to be executed upon successful download.</p> <p>plus, some of the same settings you currently do with transmission-remote, I wonder if it would be useful to do some of the symlink stuff in this finish script, instead of your main script&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-479064</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-479064</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 11:01:21 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I wish you would update the Scriptver variable when you edit it, so i can tell when you have made changes since the last time I downloaded it, easily, I could probably even write an auto update script to run once a day or something, to keep it updated, or, at least let me know that a new version has been posted, so I can do it manually. :)</p> <p>Edit: I just updated and now get this</p> <p>May 14&#160;07:02:01 MediaServe cron.notice crond[3010]: USER root pid 9161 cmd /usr/bin/trans_watchdog<br /> May 14&#160;07:02:02 MediaServe user.notice transmission: SOURCE directory /shares/internal/PUBLIC/Torrent/source does NOT exist, script will exit<br /> May 14&#160;07:03:01 MediaServe cron.notice crond[3010]: USER root pid 9190 cmd /usr/bin/trans_watchdog<br /> May 14&#160;07:03:02 MediaServe user.notice transmission: SOURCE directory /shares/internal/PUBLIC/Torrent/source does NOT exist, script will exit</p> <p>It's not reading my config file, guess, but, I can't see any reason why. :(</p> <p>Edit2: ran it from the CLI, maybe this is why:</p> <p>/opt/etc/trans_watchdog.conf: line 34: unexpected EOF while looking for matching &#8216;&#8217;'<br /> /opt/etc/trans_watchdog.conf: line 40: syntax error: unexpected end of file</p> <p>but, I don't see any ' missing&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478893</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478893</link>
				<description></description>
				<pubDate>Thu, 14 May 2009 07:04:49 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have done some comprehensive moving in the script to minimize the time the script is running&#8230;.</p> <p>A DD-WRT router on which I was running the script as well behaved quite different and had to write some workarounds for that as well&#8230;</p> <p>The program &quot;transmission-remote&quot; ran too often inside the script which slowed it down. Because writing this script is an evolutionary process it's quite normal to introduce these inefficiencies&#8230;</p> <p>I hope you're having more success with the script now.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478373</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478373</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 19:04:45 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I found a reason why script is not always working as expected.<br /> I relied on transmission-remote to set a status code which I could use in my code.<br /> It doesn't do so&#8230;</p> <p>I will now change the code.<br /> Hang on&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478313</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478313</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 18:11:22 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, I needed to edit it to test it before I could tell exactly what was wrong, if you have fixed it similar to what I have, then, I can discard my changes and use your script, unmodified.</p> <p>now, new business (I still haven't gotten the latest, yet, but, I'm sure this will still be an issue) This is actually old business, I just never bothered to say anything before, every so often, it seems the script takes more than a minute to finish, or something.</p> <p>May 13&#160;12:54:01 MediaServe cron.notice crond[3010]: USER root pid 12430 cmd /usr/bin/trans_watchdog<br /> May 13&#160;12:55:01 MediaServe cron.notice crond[3010]: USER root pid 12529 cmd /usr/bin/trans_watchdog<br /> May 13&#160;12:55:07 MediaServe user.notice transmission: /usr/bin/trans_watchdog already running&#8230; this one will stop<br /> May 13&#160;12:56:02 MediaServe cron.notice crond[3010]: USER root pid 12648 cmd /usr/bin/trans_watchdog</p> <p>like so. I have run it from the CLI many times, and it never takes more than a few seconds to complete, any idea what could be happening?</p> <p>Edit: Also, is this supposed to be broken up like this? (I know nano will do this if you are editing a long line, and it is very infuriating)</p> <div class="code"> <pre><code>(I had to add this line to allow it to indent properly in this codebox) echo &quot;From: &lt;${MAILFROM}&gt; To: &lt;${MAILTO}&gt; Subject: ${IP}: ${TORRENTNAME} torrent finished &quot; &gt; ${TMPINFO} cat ${INFO} &gt;&gt; ${TMPINFO}</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478300</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478300</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 17:54:43 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I added some extra checks to prevent unwanted removal of symbolic links</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478232</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478232</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 16:39:46 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, you are right. I should increment the value.<br /> I wasn't in need of such a feature myself because I don't download that many torrents&#8230;.</p> <p>If transmission is bringing your worldbook down, you have to blame transmission itself, really.</p> <p>I do hope you can run the modified script now.<br /> Please tell me what you like to have changed so you don't need to edit it.</p> <p>I also have to take care the script doesn't take up too many resources itself.<br /> Especially the first bit shouldn't take too much as it runs every minute&#8230;</p> <p>Because I need both values (handling and downloading), I added an extra line for HANDLING a bit further in the script.<br /> That part only runs every 5 minutes and not every minute.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478160</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478160</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 15:20:37 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Whether you think I know what I'm doing or not, there is one thing you overlooked that causes unexpected behavior for sure.</p> <p>When the script fills in the value for ${Downloading} (or ${Handling}) it stays the same for the rest of the code, which means this:</p> <div class="code"> <pre><code> do NEW_NAME=`echo &quot;$TORRENTNAME&quot; | sed -e 's/\x1b\[[0-9]\{1,2\}\(;[0-9]\{1,2\}\)$ if [ ! &quot;${TORRENTNAME}&quot; == &quot;${NEW_NAME}&quot; ] ; then mv &quot;${TORRENTNAME}&quot; &quot;${NEW_NAME}&quot; _logger &quot;I renamed Torrent: ${TORRENTNAME} to ${NEW_NAME}&quot; TORRENTNAME=&quot;${NEW_NAME}&quot; fi if [ ${DOWNLOADING} -lt ${MAX_SIMULTANEOUS} ]; then $TRANSREMOTE -a &quot;${TORRENTNAME}&quot; &gt;/dev/null if [ &quot;${?}&quot; -eq &quot;0&quot; ] ; then _logger &quot;Added the Torrent: ${TORRENTNAME} to transmission&quot; # rm -f &quot;${TORRENTNAME}&quot; mv &quot;${TORRENTNAME}&quot; &quot;${TORRENTNAME}.transmission&quot; fi fi else debug &quot;Did not add ${TORRENTNAME}, because the limit of ${MAX_SIMULTANEOUS}$ fi done</code></pre></div> <br /> causes it to add ALL of the torrents, no matter what the limit is. you need to reassign that variable within the do, so it increases as new torrents are added, or do let &quot;DOWNLOADING++&quot; when you add a new torrent, or something&#8230;. <p>Edit: OK, I see that later in the script it shuts down transmission if there are no active files, which is why it needs all active files, and not just the downloading files, so, I added (I haven't downloaded the new script, yet) HANDLING=your original line and left DOWNLOADING=my line and use DOWNLOADING to figure out whether or not to add a new download (with the let &quot;DOWNLOADING++&quot; I mentioned inside the do loop) and changed the name of the other ones to HANDLING, so, it works as you expected. I also think that setting -gpr as I mentioned earlier is really helping, I'm downloading more than one torrent without it freezing, whereas, it was freezing with just one download going before. so, maybe that should be added as another option in the conf, with either 0 or -1 as unlimited.</p> <p>Edit2: Of course, HANDLING should be increased when you add a new one as well.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-478068</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-478068</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 13:45:40 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>just a quick note, I set -gpr (global peers) to 25 and the CPU usage dropped suddenly from 75%-93% down to less than 40%, might have been a coincidence, but, I haven't seen that happen before I did that.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-477974</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-477974</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 11:23:50 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just did an ipkg update and ipkg upgrade, and it upgraded transmission to 1.61-1, I'll go find the change log and see if this is something fixed in the new transmission.</p> <p>Edit: <a href="http://linux.softpedia.com/progChangelog/Transmission-Changelog-4856.html">http://linux.softpedia.com/progChangelog/Transmission-Changelog-4856.html</a> &lt;<span style="text-decoration: line-through;">-</span>1.60 added a watch directory natively, and some other changes were added in other revisions that might be useful in your script, such as seed ratio limiting natively.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-477970</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-477970</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 11:12:03 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't want it Handling one file at a time, a file could be seeding for days, I want it only downloading 1 (or however many are specified in the limit setting) at a time, also, I have confirmed that when I stop transmission, or if I have to unplug the WB because it has frozen, that it removes seeding files because it thinks they are done</p> <p>May 13&#160;07:02:01 MediaServe user.notice transmission: Removed symbolic link Name.Of.File.avi because it was removed from transmission</p> <p>it wasn't, I just shutdown transmission using the K10 script. what is even stranger is I had already removed the watchdog script from crontabs before this, meaning it was still run somehow&#8230;</p> <p>And, yes, it is about reporting, it is about reporting to a part of the script later how many downloads are currently running, so it can either do nothing, or add another, before, it was reporting all files, not just the ones downloading.</p> <p>And, yes, it was removing seeding tasks before I touched the script.</p> <p>As far as making changes in /etc/trans_watchdog.conf or /opt/etc/trans_watchdog.conf, there is no way to change what I changed there.</p> <p>and, yes, I installed all of the dependencies.</p> <p>The ENTIRE reason I was editing the script is because it was freezing up with the unmodified script.</p> <div class="code"> <pre><code>May 13 07:01:54 MediaServe user.warn kernel: transmission-da: page allocation failure. order:1, mode:0x20 May 13 07:01:54 MediaServe user.warn kernel: Mem-info: May 13 07:01:54 MediaServe user.warn kernel: DMA per-cpu: May 13 07:01:54 MediaServe user.warn kernel: cpu 0 hot: high 6, batch 1 used:5 May 13 07:01:54 MediaServe user.warn kernel: cpu 0 cold: high 2, batch 1 used:1 May 13 07:01:54 MediaServe user.warn kernel: DMA32 per-cpu: empty May 13 07:01:54 MediaServe user.warn kernel: Normal per-cpu: empty May 13 07:01:54 MediaServe user.warn kernel: HighMem per-cpu: empty May 13 07:01:54 MediaServe user.warn kernel: Free pages: 1016kB (0kB HighMem) May 13 07:01:54 MediaServe user.warn kernel: Active:3435 inactive:1053 dirty:93 writeback:0 unstable:0 free:254 slab:2329 mapped:3303 pagetables:95 May 13 07:01:54 MediaServe user.warn kernel: DMA free:1016kB min:724kB low:904kB high:1084kB active:13740kB inactive:4212kB present:32768kB pages_scanned:0 all_unreclaimable? no May 13 07:01:54 MediaServe user.warn kernel: lowmem_reserve[]: 0 0 0 0 May 13 07:01:54 MediaServe user.warn kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 13 07:01:54 MediaServe user.warn kernel: lowmem_reserve[]: 0 0 0 0 May 13 07:01:54 MediaServe user.warn kernel: Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 13 07:01:54 MediaServe user.warn kernel: lowmem_reserve[]: 0 0 0 0 May 13 07:01:54 MediaServe user.warn kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no May 13 07:01:54 MediaServe user.warn kernel: lowmem_reserve[]: 0 0 0 0 May 13 07:01:54 MediaServe user.warn kernel: DMA: 220*4kB 1*8kB 0*16kB 0*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB = 1016kB May 13 07:01:54 MediaServe user.warn kernel: DMA32: empty May 13 07:01:54 MediaServe user.warn kernel: Normal: empty May 13 07:01:54 MediaServe user.warn kernel: HighMem: empty May 13 07:01:54 MediaServe user.warn kernel: Swap cache: add 6546, delete 5328, find 1360/2056, race 0+0 May 13 07:01:54 MediaServe user.warn kernel: Free swap = 94692kB May 13 07:01:54 MediaServe user.warn kernel: Total swap = 104312kB May 13 07:01:54 MediaServe user.warn kernel: Free swap: 94692kB May 13 07:01:54 MediaServe user.warn kernel: 8192 pages of RAM May 13 07:01:54 MediaServe user.warn kernel: 400 free pages May 13 07:01:54 MediaServe user.warn kernel: 691 reserved pages May 13 07:01:54 MediaServe user.warn kernel: 2329 slab pages May 13 07:01:54 MediaServe user.warn kernel: 2917 pages shared May 13 07:01:54 MediaServe user.warn kernel: 1218 pages swap cached</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-477545</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-477545</link>
				<description></description>
				<pubDate>Wed, 13 May 2009 00:01:28 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>transmission-remote -l 2&gt;/dev/null | grep -v &quot;ETA &quot; |grep -v &quot;^Sum:&quot; | wc -l</code></pre></div> <br /> Nothing wrong there&#8230;<br /> At that point I want to know if it is handling any torrents or not.<br /> You are killing the logic when you exclude the seeding ones.<br /> Please change it back if you want a proper behaviour. <p>If anything is wrong there, it's only the poor choice of naming the variable &quot;DOWNLOADING&quot;<br /> I changed it to &quot;HANDLING&quot;&#8230; This doesn't effect the behaviour.</p> <div class="code"> <pre><code>HANDLING=`${TRANSREMOTE} -l 2&gt;/dev/null | grep -v &quot;ETA &quot; | grep -v &quot;^Sum:&quot; | wc -l`</code></pre></div> <blockquote> <p>I see now why the 2 is there, it's not a typo… :) but, I added | grep -v &quot;Done &quot; after | grep -v &quot;ETA &quot; and it looks like it properly reports the correct number now.</p> </blockquote> <p>It's not about reporting at all.<br /> The program should be running as a cronjob and its output is not that important (more for debugging)</p> <blockquote> <p>I'm still noticing a lot of torrents getting removed before they should be, might be related to the freezes, and having to unplug it and start it up again, but, it's rather annoying, and killing my ratio…</p> </blockquote> <p>Please run the unmodified script and tell me if it's still doing it.</p> <p>If you want to change parameters, you should do this in /etc/trans_watchdog.conf or /opt/etc/trans_watchdog.conf<br /> Also check if you installed findutils and other programs in optware (mentioned in header)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-477451</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-477451</link>
				<description></description>
				<pubDate>Tue, 12 May 2009 21:23:41 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm still noticing a lot of torrents getting removed before they should be, might be related to the freezes, and having to unplug it and start it up again, but, it's rather annoying, and killing my ratio&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-477266</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-477266</link>
				<description></description>
				<pubDate>Tue, 12 May 2009 18:05:27 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK, I have been busy, so, I couldn't get on here or even watch the script closely, but, I noticed something, you use</p> <div class="code"> <pre><code> transmission-remote -l 2&gt;/dev/null | grep -v &quot;ETA &quot; |grep -v &quot;^Sum:&quot; | wc -l</code></pre></div> <p>to return number of downloads, I see two things wrong, first (and very minor, makes no real difference) that 2 must be a typo, second, it counts all torrents as downloading, even if they are actually done and are only seeding&#8230; I think it would be better to check the Done column instead, and ignore any that are 100%, or ignore ones in the ETA column that say Done&#8230;.</p> <p>Edit: I see now why the 2 is there, it's not a typo&#8230; :) but, I added | grep -v &quot;Done &quot; after | grep -v &quot;ETA &quot; and it looks like it properly reports the correct number now.</p> <p>Edit2: Maybe another check could be done to limit the number of seeding/idle torrents as well.</p> <p>Edit3: I'll tell you what, though, if the MB is going to keep locking up, I might scrap this whole thing and either go back to running utorrent on my PC and set the download directories to the MB, or find an old computer to install Linux on (in fact, I already have an iMac I installed Ubuntu on, and don't really use&#8230;.) and install transmission and this script on there, making any modifications I need to for it to run.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-470624</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-470624</link>
				<description></description>
				<pubDate>Wed, 06 May 2009 12:24:59 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>updated, I'll let you know if I see anything wonky, I had noticed that it seemed completed downloads were finishing before they had been seeding for the correct amount of time, but, I assumed I was just mistaken, since I didn't have the time to really check it out. I do notice that you seem to have forgotten to update the scriptver variable the last few updates&#8230; :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-467181</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-467181</link>
				<description></description>
				<pubDate>Sun, 03 May 2009 09:29:57 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>After introducing your feature requests I introduced some bugs which caused it to remove the symbolic links of already downloaded files&#8230;.<br /> The script was thinking it had nothing to download, when in fact transmission was stopped.<br /> When transmission then starts again it will start to download the torrent again and will get in an error-state when it tries to copy the newly downloaded torrent&#8230;.</p> <p>Please update your scripts and manually clean up the work directory and target directory&#8230; !</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-462317</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-462317</link>
				<description></description>
				<pubDate>Tue, 28 Apr 2009 03:16:27 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm sure you don't want to steal someone else's code (although, in open source, it's not stealing as long as you give proper credit) but, did you find this other script and see how he does the QUIT_TRANSMISSION_WHEN_INACTIVE stuff? I haven't tested the other script at all, but, just reading the code, it looks pretty straight forward.</p> <p>I'll update and check out the new script when I get a chance.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-461612</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-461612</link>
				<description></description>
				<pubDate>Mon, 27 Apr 2009 18:28:19 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>When MINUTE=0 I will stop the daemon only if it's not downloading anything&#8230;.<br /> It will restart after 5 minutes&#8230;.<br /> It only does this if it's also able to start the daemon (KEEP_TRANSMISSION_RUNNING=1)</p> <p>please test</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-461557</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-461557</link>
				<description></description>
				<pubDate>Mon, 27 Apr 2009 17:40:43 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm considering to revert the whole code that contains &quot;QUIT_TRANSMISSION_WHEN_INACTIVE&quot; as I can't oversee every situation and I can't be sure that it will not get in a situation that it either stops and starts every time or doesn't start again at all&#8230;.</p> <p>I will however incorporate the code with MAX_SIMULTANEOUS&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-461302</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-461302</link>
				<description></description>
				<pubDate>Mon, 27 Apr 2009 12:20:54 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was already considering the latter&#8230;<br /> I'm actually already doing something when transmission is inactive&#8230;</p> <p>MAX_SIMULTANEOUS is implemented (please test)</p> <p>I have added QUIT_TRANSMISSION_WHEN_INACTIVE, but it will probably turn transmission on and off all the time&#8230;. (quick and dirty implementation)<br /> Have to think of a procedure to prevent that.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-460760</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-460760</link>
				<description></description>
				<pubDate>Sun, 26 Apr 2009 21:41:41 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>the whole thing locks up, the LED stops flashing (and stays lit up in whatever way it was at the moment of the crash until I unplug it) my SSH session gets disconnected, etc.</p> <p>upgraded.</p> <p>I was looking at another script that works similar to yours, and saw a few things you might consider adding, such as</p> <ol> <li>how many torrents should be downloading at the same time</li> <li>recommended to keep this at 1, since mbwe does have so little memory and so slow cpu</li> </ol> <p>MAX_SIMULTANEOUS=1</p> <p>and</p> <ol> <li>whether or not to quit transmission, if there are no torrents in the queue.</li> <li>if quit, it will be restarted when something is found in the watch directory</li> <li>if you're planning on adding torrents also by other means (with clutch, for example)</li> <li>than using the watch directory, set this to 0</li> </ol> <p>QUIT_TRANSMISSION_WHEN_INACTIVE=1</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-460704</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-460704</link>
				<description></description>
				<pubDate>Sun, 26 Apr 2009 19:59:20 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>sounds like a memory leak which is a problem with the daemon itself.<br /> I can however kill the daemon whenever it doesn't react on 'transmision-remote' or when it doesn't download one byte.</p> <p>How was your transmission behaving in that situation?</p> <p>BTW&#8230;. You should try an ipkg update / ipkg upgrade&#8230;. A lot has been updated and transmission_1.52-1 is one of them.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-460671</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-460671</link>
				<description></description>
				<pubDate>Sun, 26 Apr 2009 19:03:35 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, the script has been running rather well, but, today I had a situation (twice, actually) where the MBWE froze, looking at /var/log/messages.0 it looks like an out of memory problem&#8230; So, I was thinking, since the new script doesn't stop/start transmission, maybe something could be added that would keep track of memory, and restart transmission when it gets low or something (like pausing some torrents, or whatever might decrease memory usage).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-455425</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-455425</link>
				<description></description>
				<pubDate>Tue, 21 Apr 2009 05:45:30 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm not sure what you mean by how it can be implemented.</p> <p>Edit: remove a mistaken conclusion&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-454664</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-454664</link>
				<description></description>
				<pubDate>Mon, 20 Apr 2009 14:52:41 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Like your request for a schedule, this smb-throttling was a request as well&#8230;<br /> I think it's more transmission's CPU-usage &amp; memory consumption which is interfering and I can only hope it's behaving more nicely when the throughput is throttled.</p> <p>Can you give some feedback on how my script in general can be implemented now and how it's running?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-454613</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-454613</link>
				<description></description>
				<pubDate>Mon, 20 Apr 2009 13:44:09 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I never had too much of a problem with torrents interfering with SMB activity, even with 3 Xboxes watching different movies at once, and my main PC transferring new movies/TV shows to the My Book&#8230;.. But, I do see the messages that it is throttling for SMB activity.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-454324</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-454324</link>
				<description></description>
				<pubDate>Mon, 20 Apr 2009 06:53:19 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Can you give some feedback about the throttling during SMB-activity?<br /> I'd like to know if it's sufficient&#8230;.<br /> Of course you need to publish the values you used for throttling&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453933</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453933</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 20:20:28 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>No, I didn't use any windows app to edit it. I did, however add it to my webif so i could edit it from there, and, I guess it must have added crlf EOLs I'll modify it to run dos2unix after editing :)</p> <p>Edit: dos2unix seems to have done it, thanks.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453917</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453917</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 19:57:22 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I guess you have been using some windows app to edit that file?<br /> Can you check trans_watchdog.conf for strange characters?</p> <p>You can also enclose it between double quotes..<br /> But why the preference for these strange characters?</p> <p>If nothing helps you should delete the config file and afterwards edit it with vi to modify the parameters&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453900</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453900</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 19:35:27 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>integer expression expected 132: [: 0<br /> integer expression expected 134: [: 30<br /> transmission: SOURCE directory /shares/internal/JUNK/Torrent_Temp/!!!AutoGetTorr does NOT exist, script will exit</p> <p>the SOURCE directory is actually /shares/internal/JUNK/Torrent_Temp/!!!AutoGetTorrents (I also tried /shares/internal/JUNK/Torrent_Temp/\!\!\!AutoGetTorrents) seems to be getting cut off for some reason.</p> <p>The other errors are from lines 132 and 134 as the error points out, but, I don't know what the problem is.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453791</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453791</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 17:15:38 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You can redownload it&#8230;<br /> But you have to add these 3 vars to your own config-file by hand or delete the config-file</p> <p>SOURCE<br /> WORK<br /> TARGET</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453786</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453786</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 17:02:08 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>SOURCE<br /> WORK<br /> TARGET are all created from BASEDIR</p> <p>I guess you're not using the structure</p> <p>/source<br /> /work<br /> /target</p> <p>RUN_AFTER_MOVE was not working somehow (although I'm not sure about that) so I deleted it.</p> <p>FILE_AGE is not a config-var but is calculated<br /> RATIO is not a config-var but is calculated</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453772</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453772</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 16:42:25 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I feel you have missed some options&#8230;</p> <p>SOURCE=<br /> WORK=<br /> TARGET=<br /> RUN_AFTER_MOVE=<br /> FILE_AGE=1<br /> RATIO=1</p> <p>They are all in the script, and I may be misunderstanding the last 2, but, the first three are critical for me&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453728</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453728</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 15:13:02 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><strong>configfile is done</strong></p> <p>I didn't really get any wiser googling for a best practice for my config-file, so I &quot;invented&quot; my own way of doing it.</p> <p>As I wrote it, I can still introduce new variables without getting an error.<br /> If things really don't work as expected one can still kill the config file which is written to <strong>/etc/trans_watchdog.conf</strong> or <strong>/opt/etc/trans_watchdog.conf</strong> (or optionally another file using &quot;-c&quot; trans_watchdog -c /opt/etc/trans_watchdog.conf)</p> <p>I had some problems with the array-variable which couldn't be handled like any other variable as it turned out&#8230;.<br /> But everything is working now!!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453629</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453629</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 12:26:49 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Doesn't seem to have worked, but, i have a second file still seeding, maybe the code needs some tweaking?</p> <p>Edit: Oh, wait, that's in the part of the script that runs every 5 minutes, guess I need to wait to see&#8230;</p> <p>Edit: Yes, it did work, eventually.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453626</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453626</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 12:20:07 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yep, there's code for it in there&#8230;.<br /> I'm not sure if it works as intended&#8230;..</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453617</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453617</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 12:14:51 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have an associates degree in the field of computer programming, but, that doesn't really mean much :)</p> <p>I was just wondering, if I remove a file from the webif of transmission, will trans_watchdog remove the sym link for it on the next run?</p> <p>I guess I'll try that now&#8230;</p> <p>Edit: looking through the script, I see you have already thought of that :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-86827#post-453606</guid>
				<title>Re: automatically start\stop transmission</title>
				<link>http://mybookworld.wikidot.com/forum/t-86827/automatically-start-stop-transmission#post-453606</link>
				<description></description>
				<pubDate>Sun, 19 Apr 2009 12:03:15 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes&#8230;.<br /> I will look into it (bit of googling how others do such a thing).</p> <p>I used to be a fulltime programmer (self-taught) and I just recently started doing shell-scripts.</p> <p>As an example..<br /> The code using &quot;top&quot; to determine if a process is busy can't be found on the net and is my own &quot;invention&quot;.<br /> AFAIK it gives more reliable info than other examples that are doing the same thing&#8230;</p> <p>I wanted to do a full cleanup of the code, but it just isn't as rewarding as new features.<br /> Now the script is getting more and more ugly&#8230;..</p> <p>Hang on for an update&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>