<?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>Updated trans_watchdog</title>
		<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog</link>
		<description>Posts in the discussion thread &quot;Updated trans_watchdog&quot; - A shell script to manage transmission downloads</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-604396</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-604396</link>
				<description></description>
				<pubDate>Thu, 08 Oct 2009 19:33:43 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I did, and I couldn't get all the perl modules to install to make it work. Also, you either need to move the settings to the beginning of the file, or make a conf for that one, too… it's a bitch trying to figure out exactly what should be configured when you hardcode everything.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-604375</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-604375</link>
				<description></description>
				<pubDate>Thu, 08 Oct 2009 19:10:29 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you want renaming you should really look into my mvmovie &amp; mkdvd</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-603974</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-603974</link>
				<description></description>
				<pubDate>Thu, 08 Oct 2009 06:09:04 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've been thinking, would it be possible to get some new features added? I was thinking maybe a way to have slightly different settings for different trackers, for instance, I have a private tracker I use to get most of my TV shows, so, I need to maintain a certain ratio there, but, other things I get from places like TPB, etc. I don't have to seed quite so long….(I know, call me a bad person if you want) and, I would also like it, if, after seeding is done, it will move it from the current final directory, to another directory, either based on tracker name, filename, or some other criteria. I know this seems silly, since I can have it moved to any directory I want once it is downloaded, and while it is still seeding, but, it would help me keep track of what is actually done, and can be renamed, and what is still seeding, but, available to watch (my work directory is inaccessible from the network, so people won't try to watch stuff that isn't finished downloading yet…)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-601271</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-601271</link>
				<description></description>
				<pubDate>Mon, 05 Oct 2009 03:19:22 +0000</pubDate>
				<wikidot:authorName>bzhou</wikidot:authorName>				<wikidot:authorUserId>55287</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>$ /opt/bin/transmission-remote -V Transmission 1.75 (9117)</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-600753</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-600753</link>
				<description></description>
				<pubDate>Sun, 04 Oct 2009 09:12:00 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Mmmm…<br /> Not very script-friendly if they keep changing output all the time and even within the same version….. It's quite common to write scripts using the output of commands….<br /> As I already told you I'm currently not downloading anything, so I checked my friend's transmission which also had 1.75, but his is running on DD-WRT and that 9117 didn't make it into optware…</p> <p>I will work on it this afternoon…..<br /> I want to keep it backward-compatible too….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-600641</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-600641</link>
				<description></description>
				<pubDate>Sun, 04 Oct 2009 03:01:15 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Transmission 1.75 (9117)</p> <div class="code"> <pre> <code>ID Done Have ETA Up Down Ratio Status Name 1 100% 5.0 GB Unknown 0.0 0.0 0.10 Idle *************** 2 100% 232.1 MB Unknown 0.0 0.0 0.85 Idle ********************* 3 100% 350.4 MB 1 days 2.0 0.0 0.80 Seeding ********************* 4 100% 350.0 MB Unknown 0.0 0.0 0.60 Idle ******************** 5 100% 175.0 MB Unknown 0.0 0.0 0.20 Idle **********</code> </pre></div> <p>Mine all say Unknown except those that are actually downloading or Seeding…..</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-599300</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-599300</link>
				<description></description>
				<pubDate>Fri, 02 Oct 2009 11:12:57 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>They don't seem to be using Done anymore, it's now Idle…</p> </blockquote> <p>I'm running 1.75 and "Done" is still in that line if a torrent is fully downloaded….</p> <div class="code"> <pre> <code># transmission-remote -l ID Done Have ETA Up Down Ratio Status Name 1 100% 3.5 GB Done 0.0 0.0 0.71 Idle *************** **** 2 100% 4.3 GB Done 100.0 0.0 1.35 Seeding ********** **** **** *** Sum: 7.8 GB 100.0 0.0</code> </pre></div> <br /> It checks the full line for that word….<br /> I'm not denying there's something wrong with the script although I'm not experiencing any problems.<br /> It's still working at my friend's system…. I'm not downloading at the moment……
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-599214</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-599214</link>
				<description></description>
				<pubDate>Fri, 02 Oct 2009 08:04:58 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The log seems to be normal. Do you mean this torrent (#31) didn't move to /shares/internal/NEW ?</p> <p>That's exactly what I mean, along with every other torrent I have downloaded since updating.</p> <p>and, what i meant was, a command line switch that would allow you to run the whole script manually no matter how long it's been (which I already went and added to mine) I was getting tired of waiting for just the right moment every 5 minutes, so I could see the entire output (most of that never goes to the log)</p> <p>Edit: I wonder if it has anything to do with this…..<br /> cat "${REMOUTPUT}" | grep "100%" | grep "Done " | cut -b${namepos}- &gt;$FTEMP<br /> They don't seem to be using Done anymore, it's now Idle… I guess, and Seeding, etc. I decided to check the /tmp/trans_watchdog.output file, and that's when I noticed none of them say Done… I'm not even sure how the one I posted as an example ever even got that far…</p> <p>Edit2: I changed the Line to<br /> cat "${REMOUTPUT}" | grep "100%" | grep "Unknown " | cut -b${namepos}- &gt;$FTEMP<br /> using Unknown so it wouldn't stop files that are still seeding, and, it seems to have gone back to working.<br /> using unknown may not be the best way to keep it from interrupting files that are seeding at that moment (since some could still say unknown) but, getting rid of Done fixed the problem, since newer versions of transmission don't seem to use Done anymore.</p> <p>Adding Grep -v "Seeding " could be a good way to stop only torrents that aren't currently seeding…. just a thought :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-599183</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-599183</link>
				<description></description>
				<pubDate>Fri, 02 Oct 2009 06:49:01 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>Edit: I know something that needs to be added, a command line switch to bypass the part that only runs the whole thing every so many minutes….</p> </blockquote> <p>Not really…<br /> The script should be run every minute so it doesn't take too long before a torrent is added from the watchfolder. To keep the Worldbook from stressing it will abort the script after monitoring the watchfolder and will continue only every 5 minutes….</p> <p>It seems you have not installed "SendEmail"<br /> It's a perl-script which should be in your PATH to work. Nothing trivial though. It just informs you a torrent is finished.</p> <p>The log seems to be normal. Do you mean this torrent (#31) didn't move to /shares/internal/NEW ?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-599149</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-599149</link>
				<description></description>
				<pubDate>Fri, 02 Oct 2009 05:16:14 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, I have this in the messages log:</p> <div class="code"> <pre> <code>Sep 30 14:20:24 MediaServe user.notice transmission: Pausing torrent #31 (*****) so it can be moved Sep 30 14:20:25 MediaServe user.notice transmission: Created a symbolic link in /shares/internal/JUNK/Torrent_Temp to: /shares/internal/NEW/***** Sep 30 14:20:25 MediaServe user.notice transmission: Sending eMail using sendEmail Sep 30 14:20:25 MediaServe user.notice transmission: The perl script "sendEmail" can not be found, you need to install it Sep 30 14:20:25 MediaServe user.notice transmission: Unpausing torrent #31 (*****)</code> </pre></div> <p>So, it is trying to send me an email about the problem, instead of just outputting it to the log…..</p> <p>It's also not writing the log files for the files…..</p> <p>I'll see if I can add some log output there and see what it says.</p> <p>Some of the torrents don't even show where an attempt was made at all to pause them….</p> <p>Edit: I know something that needs to be added, a command line switch to bypass the part that only runs the whole thing every so many minutes….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-597747</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-597747</link>
				<description></description>
				<pubDate>Wed, 30 Sep 2009 20:14:03 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do you have more info? You pretty much know how it's working. can you debug some more?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-597733</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-597733</link>
				<description></description>
				<pubDate>Wed, 30 Sep 2009 19:59:52 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I changed it….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-597644</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-597644</link>
				<description></description>
				<pubDate>Wed, 30 Sep 2009 18:14:12 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>New problem, my torrents don't seem to be getting moved to the proper directory when they finish downloading… or any directory at all, as far as I can tell…. The actual file is still in the Download directory instead of a link.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-597139</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-597139</link>
				<description></description>
				<pubDate>Wed, 30 Sep 2009 07:54:35 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I figured out why, they added Idle as one of the possible states for torrents. so, line 193 needs to be changed to</p> <p>DOWNLOADING=`${TW_TRANSREMOTE} -l 2&gt;${ERROROUTPUT} | grep -vi "Idle" | grep -vi "Done" | grep -v "ETA " | egrep -v "^Sum:" | wc -l`</p> <p>actually, to be more accurate, it should be changed to</p> <p>DOWNLOADING=`${TW_TRANSREMOTE} -l 2&gt;${ERROROUTPUT} | grep -vi "Seeding" | grep -vi "Idle" | grep -vi "Done" | grep -v "ETA " | egrep -v "^Sum:" | wc -l`</p> <p>but, I think we had this conversation before :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-597107</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-597107</link>
				<description></description>
				<pubDate>Wed, 30 Sep 2009 06:55:21 +0000</pubDate>
				<wikidot:authorName>IAmParadox</wikidot:authorName>				<wikidot:authorUserId>314103</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Seems something has changed with the newest version of transmission (Transmission 1.75 (9117)) trans_watchdog refuses to add any more torrents, saying the limit (5) has already been reached, but, there are none downloading….</p> <p>I tried before updating to the latest trans_watchdog (everything was working fine until I updated Transmission) and, also, after updating to the latest version of the script…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-515093</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-515093</link>
				<description></description>
				<pubDate>Mon, 22 Jun 2009 08:13:14 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yesterday I played with the trans_watchdog.</p> <p>Two things:<br /> 1) senEmail did not work.<br /> 1A)<br /> What do you have in the config the "MAIL_TO" or "MAILTO"?<br /> I have "MAIL_TO" but the mailfrom is "MAILFROM". Maybe this is the problem.</p> <p>1A) Do you have an example to run sendEmail from command prompt and try if it works alone?</p> <p>2) I fihured out the root of the crashes that happend in each 5-min. It was the following line:</p> <blockquote> <p>"rpc-authentication-required": false,</p> </blockquote> <p>If it is true, then it crashes all the time after 5mins.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-513199</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-513199</link>
				<description></description>
				<pubDate>Fri, 19 Jun 2009 18:36:09 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok. I lose my connection exactly after each 5 mins. Do you have something as a 5min cronjob?<br /> I could find anyting in cron.5mins…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-512838</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-512838</link>
				<description></description>
				<pubDate>Fri, 19 Jun 2009 09:39:39 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>So after successfully install your prep_whitelight, i gave a try and added yesterday the trans_watchdog<br /> (renamed from trans_watchdog_ok) as a 1-min cronjob.I let it run the whole night and checked the result this morning.</p> <p>- in the /var/log/messages the trans_watchdog runs in each minute<br /> - My vi /opt/etc/trans_watchdog.exude is empty.<br /> - My vi /opt/etc/trans_watchdog.conf:</p> <blockquote> <p>AUTO_REMOVE_FROM_LIST=1<br /> AUTO_REMOVE_SEEDLINK=1<br /> AUTO_UNRAR=1<br /> CPULEVEL=5<br /> DATAGROUP=www-data<br /> DEBUG=1<br /> FULL_THROTTLE_DOWN=0<br /> FULL_THROTTLE_UP=30<br /> INTERVAL=5<br /> KEEPRAR=0<br /> KEEP_TRANSMISSION_RUNNING=1<br /> MAILERSERVICE=sendEmail<br /> MAILFROM=<span class="wiki-email">moc.liamg|xxxx#moc.liamg|xxxx</span><br /> MAILSERVER=smtp.gmail.com<br /> MAILTO=<span class="wiki-email">moc.liamg|xxx#moc.liamg|xxx</span><br /> MAX_RATIO=1.0<br /> MAX_SEEDHOURS=48<br /> MAX_SIMULTANEOUS=5<br /> MIN_SEEDHOURS=1<br /> SCHEDULE_THROTTLE_DOWN=2000<br /> SCHEDULE_THROTTLE_UP=20<br /> SCHEDULE_WEEKEND=([0]="0" [1]="0" [2]="1" [3]="1" [4]="1" [5]="1" [6]="1" [7]="$<br /> SCHEDULE_WORKDAY=([0]="1" [1]="1" [2]="1" [3]="1" [4]="1" [5]="1" [6]="1" [7]="$<br /> SOURCE=/shares/Public/WWW/Qtorrent/Watchtorrent/<br /> SUPERSOCIAL=1<br /> TARGET=/shares/Public/WWW/Qtorrent/Downloaded<br /> THROTTLE_DONTKILL=1<br /> THROTTLE_DOWN=100<br /> THROTTLE_UP=1<br /> TRANSDAEMON=/opt/bin/transmission-daemon<br /> TRANSOPTS=' -m'<br /> TRANSREMOTE=/opt/bin/transmission-remote<br /> TRANSSTART=/opt/etc/init.d/S90transmission<br /> TRANSSTOP=/opt/etc/init.d/K10transmission<br /> WORK=/shares/Public/WWW/Qtorrent/Downloading/<br /> WORKDAY=([0]="0" [1]="1" [2]="1" [3]="1" [4]="1" [5]="1" [6]="0")</p> </blockquote> <p>If I run the trans_watchdog:</p> <blockquote> <p>[root@MyBookWorld Transmission]# ./trans_watchdog<br /> [root@MyBookWorld Transmission]#</p> </blockquote> <p>Then I started the Transmission (1.72) and waited. I experienced the same problem that I had with the 1.61 when I took<br /> trans_watchdog in the crontab. For some reason the Transmission starts and after <span style="text-decoration: line-through;">30sec-1min</span> couple of minutes <span style="text-decoration: line-through;">it just restarts and after</span><br /> I lose the connection with my Transmisison using the Transmission-Remote all the time. Couple of sec later I am able to connect again<br /> but it start to check the torrent and stick at some %. Than lose connection… Then stucks at rechecking…<br /> If i do not run the trans_watchdog it runs without any problem.</p> <p>I think we have the problem still at the variables configuration but not sure…</p> <p>My info:<br /> -trans_watchdog location: "Public\WWW\Welcome\Transmission\trans_watchdog",<br /> -cronjob line: "*/1 * * * * /shares/Public/WWW/Welcome/Transmission/trans_watchdog" in "/opt/var/cron/crontabs/root",</p> <p>My variables:<br /> SOURCE=/shares/Public/WWW/Qtorrent/Watchtorrent<br /> WORK=/shares/Public/WWW/Qtorrent/Downloading<br /> TARGET=/shares/Public/WWW/Qtorrent/Downloaded<br /> MAILTO=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILFROM=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILSERVER="smtp.gmail.com"</p> <p>Just to make it sure the trans_watchdog does the following:<br /> 1) creates the trans_watchdog.config and trans_watchdog.exlude files with all the necessary variables info<br /> 2) looks for and adds new torrents in the $SOURCE directory<br /> 3) depending on the presettings (occupancy of samba, workday/weekend schedules , cpulevel) it tracks/adjusts the downloads in $WORK directory<br /> 4) If a downloaded torrent contains multirar files it unrars them and delete the rars files.<br /> 5) moves the downloaded files to $TARGETdirectory and send email from the successful download<br /> 6) Removing obsolete symbolic links<br /> + stops transmission every 3 hours when it isn't handling anything</p> <p>General questions about the trans_watchdog:<br /> 0) Does the script try to start transmission if it is not running?</p> <p>1) Do I have to change the "www-data" to something?:</p> <p>SMB_USER=www-data<br /> DATAUSER=www-data<br /> DATAGROUP=www-data</p> <p>2) Changing the workday/weekend schedule:</p> <p>If I want to change the schedule I have to change only the 0 to 1 or 1 to 0 in the variables, rights?</p> <p>What do you need from me to proceed?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505100</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505100</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 12:52:47 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've sent you a private message….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505093</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505093</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 12:42:58 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Fixed and commited, but it will take some time until it's built and available on the feed.<br /> If you notice some other optware issues, please let Brian Zhou know and it will be fixed.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505077</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505077</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 11:58:33 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>lrwxrwxrwx 1 root root 22 Jun 9&nbsp;08:39 ftp -&gt; /opt/bin/inetutils-ftp*</p> <p>inetutils - 1.5-5 - A set of common daemons and clients found on commercial UNIX systems.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505068</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505068</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 11:40:22 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok, it's an optware bug. What package this 'ftp' binary comes from? That's the real culprit as it's linked against the previous readline version.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505067</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505067</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 11:34:47 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>You shouldn't need this after ‘ipkg update`,`ipkg upgrade`</p> </blockquote> <p>I only have this worldbook 2 days, so it's obviously an issue now.</p> <p>Optware's ftp-client doesn't work without it…</p> <div class="code"> <pre> <code>[root@mybook2 ~]# rm /opt/lib/libreadline.so.5 [root@mybook2 ~]# ftp ftp: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory [root@mybook2 ~]# ln -s libreadline.so.6 /opt/lib/libreadline.so.5 [root@mybook2 ~]# ftp ftp&gt; bye [root@mybook2 ~]#</code> </pre></div> <p>It's probably this package:</p> <div class="code"> <pre> <code>ipkg list_installed | grep readline readline - 6.0-1 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505024</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505024</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 10:02:09 +0000</pubDate>
				<wikidot:authorName>alllexx</wikidot:authorName>				<wikidot:authorUserId>233384</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code># patch for a missing library ln -s libreadline.so.6 /opt/lib/libreadline.so.5 2&gt;/dev/null</code> </pre></div> <br /> You shouldn't need this after ‘ipkg update`,`ipkg upgrade` unless there’s some optware bug. Maybe, Brian Zhou forgot to bump ipk version in some package. Can you please tell what package errors out?
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505019</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505019</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 09:45:48 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>For those who want to look at the script without downloading:</p> <p><strong>Edit:</strong> I added an extra check when optware installation fails and the removal of /opt/etc/ipkg/armel-feed.conf if it still goes wrong…<br /> Otherwise this script doesn't try to install optware if it partly fails…..</p> <p><strong>Edited again</strong> I wanted a bash that doesn't depend on optware in /bin</p> <div class="code"> <pre> <code>#!/bin/sh PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin if ! cat /proc/cpuinfo | grep -q ARM926EJ ; then echo "This is not an ARM device" exit 1 fi if [ `cat /proc/meminfo | grep MemTotal | awk '{print $2}'` -lt 100000 ] ; then echo "This is probably not a WD Whitelight Edition ( a Bluering?? )" exit 1 fi if [ ! "$USER" = root ]; then echo "You're not root, you're ${USER}.. exiting" exit 1 fi cd ~ if [ -e "/opt/etc/ipkg/armel-feed.conf" ] ; then echo "You already installed optware, good show!" else echo -e "Optware is not installed... Let's install it\n" feed=http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable ipk_name=$(wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}') wget $feed/$ipk_name if [ $? -ne 0 ] ; then echo "I wasn't able to properly download the optware feed" echo "I will exit this script!!" exit 1 else tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf - mkdir -p /opt/etc/ipkg echo "src armel http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable" &gt; /opt/etc/ipkg/armel-feed.conf wget -O sort_dirname.tar.gz http://mybookworld.wikidot.com/local--files/optware/sort_dirname.tar.gz if [ $? -ne 0 ] ; then echo -e "Failed to download sort_dirname.tar.gz from mybookworld.wikidot.com.... trying alternative" wget -O sort_dirname.tar.gz http://wd.mirmana.com/sort_dirname.tar.gz if [ $? -ne 0 ] ; then echo "I wasn't able to properly download the optware feed" echo "I will exit this script!!" rm /opt/etc/ipkg/armel-feed.conf exit 1 else tar xvfz sort_dirname.tar.gz -C / fi else tar xvfz sort_dirname.tar.gz -C / fi fi fi mkdir -p /opt/etc/init.d 2&gt;/dev/null mkdir /usr/local/sbin 2&gt;/dev/null if grep -q opt /root/.bashrc ; then echo -e "You already have optware in your \$PATH.. in /root/.bash_profile Good show!" else mkdir /root/.org 2&gt;/dev/null cp -p /root/.* /root/.org/ sed -i -e "s/bin\/X11/local\/sbin/" /root/.bashrc sed -i -e "s/bin\/X11/local\/sbin/" /root/.bash_profile sed -i -e "s/^export PATH=/echo \$PATH | grep -q local || export PATH=/" /root/.bashrc sed -i -e "s/^\/bin:/\/opt\/bin:\/opt\/sbin:\/bin:/" /root/.bashrc sed -i -e "s/^\/bin:/\/opt\/bin:\/opt\/sbin:\/bin:/" /root/.bash_profile fi echo -e "Updating ipkg\n" ipkg update if [ $? -ne 0 ] ; then echo -e "I wasn't able update optware\nI don't dare to go on...\n\n" exit 1 fi if ! ipkg list_installed | grep -q bash ; then ipkg install bash if [ $? -ne 0 ] ; then echo -e "I wasn't able to install bash in optware\nI therefore don't dare to go on...\n\n" exit 1 fi fi wget -O bash.tar.gz http://wd.mirmana.com/bash-3.2.33+readline-6.0+gettext-0.14.5.tar.gz tar xvfz bash.tar.gz -C / if [ $? -ne 0 ] ; then echo "Failed to extract /bin/bash....." exit 1 fi echo "exit 5" | /bin/bash if [ $? -ne 5 ] ; then echo -e "Although bash is installed it somehow isn't working properly" echo -e "I'm stopping this script to prevent damage to your precious box!!" exit 1 fi if [ -x /bin/bash ]; then if [ -h /bin/sh ] ; then rm -f /bin/sh rm -f /bin/shh ln -s busybox /bin/shh ln -s bash /bin/sh fi else echo -e "WARNING: There's no executable /bin/bash\n" fi ipkg install colordiff ipkg install coreutils ipkg install diffutils ipkg install findutils ipkg install psutils ipkg install inetutils ipkg install net-tools ipkg install grep ipkg install htop ipkg install ncdu ipkg install procps ipkg install sed ipkg install vim ipkg install wget ipkg install sed ipkg install unzip ipkg install unrar # patch for a missing library # ln -s libreadline.so.6 /opt/lib/libreadline.so.5 2&gt;/dev/null if /opt/bin/stat --format=%A /root | cut -b5- | grep -q w ; then echo "You have write permissions on the /root directory for other users than root" echo "This is a problem when you want to use the /root/.ssh directory" echo "I'm removing these write permissions for the group root and others" echo "I leave the permissions for the user root untouched" chmod og-w /root else echo -e "\n\n/root only has write permissions for the 'root' this is good!\n" fi [ -d /root/.ssh ] || mkdir /root/.ssh if [ -e /etc/init.d/S90optware ] ; then echo -e "/etc/init.d/S90optware already exists, this is good\n" if [ ! -x /etc/init.d/S90optware ] ; then echo -e "Warning: The file /etc/init.d/S90optware is not executable, maybe you did this on purpose?" echo -e " Optware packages will not be started automatically\n" fi else echo "#!/bin/sh" &gt;/etc/init.d/S90optware echo "if [ -d /opt/etc/init.d ]; then" &gt;&gt;/etc/init.d/S90optware echo -e "\tfor f in /opt/etc/init.d/S* ; do" &gt;&gt;/etc/init.d/S90optware echo -e "\t\t[ -x \$f ] &amp;&amp; \$f start" &gt;&gt;/etc/init.d/S90optware echo -e "\tdone" &gt;&gt;/etc/init.d/S90optware echo "fi" &gt;&gt;/etc/init.d/S90optware chmod +x /etc/init.d/S90optware fi # Install cron and a directory structure for scheduling if ! ipkg list_installed | grep -q cron ; then ipkg install cron fi if ! ipkg list_installed | grep -q cron ; then echo -e "Cron is not installed, which is strange as I just installed it\nI'm not continuing this script\n" exit 1 fi mkdir /etc/cron.min 2&gt;/dev/null mkdir /etc/cron.5mins 2&gt;/dev/null mkdir /etc/cron.15mins 2&gt;/dev/null mkdir /etc/cron.30mins 2&gt;/dev/null mkdir /etc/cron.hourly 2&gt;/dev/null mkdir /etc/cron.daily 2&gt;/dev/null mkdir /etc/cron.weekly 2&gt;/dev/null mkdir /etc/cron.montly 2&gt;/dev/null [ -e /opt/etc/crontab.org ] || cp -p /opt/etc/crontab /opt/etc/crontab.org if grep -q run-parts /opt/etc/crontab ; then echo -e "I probably modified /opt/etc/crontab already\nCheck this file if you're not sure\n" else echo -e "I will now modify /opt/etc/crontab...\n" # sed -i -e "s/bin\/sh/bin\/bash/" /opt/etc/crontab sed -i -e "s/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/opt\/sbin:\/opt\/bin/opt\/bin:\/opt\/sbin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/local\/sbin:\/usr\/local\/bin/" /opt/etc/crontab echo -e "* * * * *\t\troot run-parts /etc/cron.min" &gt;&gt;/opt/etc/crontab echo -e "*/5 * * * *\t\troot run-parts /etc/cron.5mins" &gt;&gt;/opt/etc/crontab echo -e "1,16,31,46 * * * *\troot run-parts /etc/cron.15mins" &gt;&gt;/opt/etc/crontab echo -e "3,33 * * * *\t\troot run-parts /etc/cron.30mins" &gt;&gt;/opt/etc/crontab echo -e "1 * * * *\t\troot run-parts /etc/cron.hourly" &gt;&gt;/opt/etc/crontab echo -e "2 4 * * *\t\troot run-parts /etc/cron.daily" &gt;&gt;/opt/etc/crontab echo -e "22 4 * * 0\t\troot run-parts /etc/cron.weekly" &gt;&gt;/opt/etc/crontab echo -e "42 4 1 * *\t\troot run-parts /etc/cron.monthly" &gt;&gt;/opt/etc/crontab fi # Write a 15 minute cronjob to clean /var/log/messages from useless cron messages echo '#!/bin/sh' &gt;/etc/cron.15mins/zmsgcln echo 'grep -v ".*cron\.info.*run-parts.*$" /var/log/messages &gt;/var/log/.messages' &gt;&gt;/etc/cron.15mins/zmsgcln echo 'mv /var/log/.messages /var/log/messages' &gt;&gt;/etc/cron.15mins/zmsgcln chmod +x /etc/cron.15mins/zmsgcln # Start cron /opt/etc/init.d/S10cron echo -e "Script finished!!\nYou can now fully use optware if you login again...\n"</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-505018</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-505018</link>
				<description></description>
				<pubDate>Wed, 10 Jun 2009 09:41:30 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I received this whitelight and although I like its increased performance the console is a bit retarded when it comes out of the box.</p> <p>Unlike the bluering it doesn't have /bin/sh linked to /bin/bash but to busybox.<br /> Even when you have installed optware and have /opt/bin as first in your path it still uses the busybox for commands that are hashed.<br /> I wasn't aware of this, but I now have found a remedy.</p> <p>I wrote a script to take care of a lot of issues with the whitelight and it's a breeze to install it</p> <div class="code"> <pre> <code>wget -O prep_whitelight http://wd.mirmana.com/prep_whitelight sh prep_whitelight</code> </pre></div> <p>After running this script you should be able to run my watchdog and other advanced bash-scripts.</p> <p>It will also take care of a permission of the directory /root which prevents it from using a private/public key and it will create a directory structure to be used for cron.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-501762</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-501762</link>
				<description></description>
				<pubDate>Sat, 06 Jun 2009 19:18:35 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have found a error.log for the watchdog in /tmp/trans_watchdog_ok.error<br /> it says: "Unexpected response: &lt;h1&gt;401: Unauthorized&lt;/h1&gt;Unauthorized User@"</p> <p>maybe that was the problem</p> <p>i have auth in transmission…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-501264</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-501264</link>
				<description></description>
				<pubDate>Fri, 05 Jun 2009 23:43:08 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>FYI, I have now data in /opt/etc/trans_watchdog_ok.conf…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500068</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500068</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 21:49:59 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>ok, let's see how it works for you…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500058</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500058</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 21:43:18 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just ordered a white-light which I will probably receive next monday.<br /> I'm giving it up for a while….<br /> Or this white-light is behaving strange or it has something to do with your system….</p> <p>As I said…<br /> It even runs on a DD-WRT router (Asus WL-500G Deluxe) with a USB-harddisk attached….<br /> I have no idea why your system behaves this way….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500055</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500055</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 21:40:31 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If I run the watchdog, i do not receive any message back.<br /> Does it mean that it works now?</p> <blockquote> <p>~ # /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok<br /> ~ #</p> </blockquote> <blockquote> <p>/shares/Public/WWW/Welcome/Transmission # ./trans_watchdog_ok<br /> /shares/Public/WWW/Welcome/Transmission #</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500042</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500042</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 21:25:56 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>For both command i do not receive any error.<br /> Both shows the processes…</p> <p>procps - 3.2.8-1 is installed</p> <blockquote> <p>~ # ipkg install procps<br /> Package procps (3.2.8-1) installed in root is up to date.<br /> Nothing to be done<br /> Successfully terminated.</p> </blockquote> <p>I tried to run ldconfig but i couldnt:</p> <blockquote> <p>~ # ldconfig<br /> -sh: ldconfig: not found<br /> ~ # ./ldconfig<br /> -sh: ./ldconfig: not found</p> </blockquote> <p>BTW, the /opt/etc/trans_watchdog.conf is still empty<br /> should i put my config there?</p> <blockquote> <p>SOURCE=/shares/Public/WWW/Watch-dir<br /> WORK=/shares/Public/WWW/TR-Downloads<br /> TARGET=/shares/Public/WWW/Downloaded<br /> MAILTO=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILFROM=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILSERVER="smtp.gmail.com"</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500027</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500027</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 21:15:09 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, it should run each minute….</p> <p>This error:</p> <div class="code"> <pre> <code>Unknown HZ value! (94) Assume 100.</code> </pre></div> <p>Does it happen too if you just run?:</p> <div class="code"> <pre> <code>ps -efu root</code> </pre></div> <br /> or <div class="code"> <pre> <code>ps -e</code> </pre></div> <br /> If "ps -e" doesn't give you an error and "ps -efu ${USER}" does… you can safely replace it…. <p>It can also be related to "top"</p> <p>It has something to do with "procps"… Did you install it?<br /> Try to install/update procps and run "ldconfig"</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-500005</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-500005</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 20:52:04 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I used the 1-min cronjob to run the watchdog.<br /> in the log i receive this:<br /> Jun 4&nbsp;22:42:01 MyBookWorld cron.info /opt/sbin/cron[8517]: (root) CMD (/shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok)<br /> Jun 4&nbsp;22:43:01 MyBookWorld cron.info /opt/sbin/cron[8572]: (root) CMD (/shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok)<br /> Jun 4&nbsp;22:44:01 MyBookWorld cron.info /opt/sbin/cron[8627]: (root) CMD (/shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok)<br /> Jun 4&nbsp;22:45:01 MyBookWorld cron.info /opt/sbin/cron[8682]: (root) CMD (/shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok)</p> <p>is it ok that it runs in each minute?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499968</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499968</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 20:23:29 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Installed bash:</p> <blockquote> <ol> <li>ipkg install bash</li> </ol> <p>Installing bash (3.2.33-1) to root…<br /> Downloading <a href="http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/bash_3.2.33-1_arm.ipk">http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/bash_3.2.33-1_arm.ipk</a><br /> Installing readline (6.0-1) to root…<br /> Downloading <a href="http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/readline_6.0-1_arm.ipk">http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/readline_6.0-1_arm.ipk</a><br /> Configuring bash<br /> Configuring readline<br /> Successfully terminated.</p> </blockquote> <p>Run the watchdog:</p> <blockquote> <ol> <li>./trans_watchdog_ok</li> </ol> <p>Unknown HZ value! (94) Assume 100.<br /> Unknown HZ value! (94) Assume 100.<br /> SOURCE: /shares/Public/WWW/Watch-dir<br /> WORK: /shares/Public/WWW/TR-Downloads<br /> TARGET: /shares/Public/WWW/Downloaded<br /> USER: root<br /> SCRIPTNAME: ./trans_watchdog_ok<br /> SAMBA USER: www-data<br /> DATA USER: www-data<br /> DATA GROUP: www-data<br /> Schedule for 22:00 is 0<br /> I will try to keep transmission running<br /> Transmission is running<br /> Transmission is NOT responding<br /> Exiting because Transmission doesn't respond properly<br /> Stopping Torrent client: transmission-daemon<br /> Starting Torrent client: transmission-daemon</p> </blockquote> <p>I use nano for editing…<br /> Getting closer and closer….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499932</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499932</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 19:54:25 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This is all very strange…..<br /> Can't you install bash ( ipkg install bash )?<br /> and change the first line of my script into:</p> <div class="code"> <pre> <code>#!/opt/bin/bash</code> </pre></div> <p>There's no reason at all for the system to call busybox anymore when you issue the "egrep" command…..<br /> It seems it has a mind of its own….</p> <p>I suspect you have changed the script with a windows editor…<br /> Can't you do:</p> <div class="code"> <pre> <code>cd /opt/sbin wget http://wd.mirmana.com/trans_watchdog chmod +x trans_watchdog trans_watchdog</code> </pre></div> <br /> afterwards you can edit the config-file for your changed directory-structure…. <div class="code"> <pre> <code>vi /opt/etc/trans_watchdog.conf</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499906</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499906</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 19:33:30 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>/bin # ls -altr /bin/*grep*<br /> lrwxrwxrwx 1 root root 18 Jun 4&nbsp;20:51 /bin/grep -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:51 /bin/egrep -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:51 /bin/fgrep -&gt; /opt/bin/grep-fgrep<br /> /bin # ls -altr /opt/bin/*grep*<br /> -rwxr-xr-x 1 root root 100396 Mar 26&nbsp;07:17 /opt/bin/grep-grep<br /> -rwxr-xr-x 1 root root 43292 Mar 26&nbsp;07:17 /opt/bin/grep-fgrep<br /> -rwxr-xr-x 1 root root 96284 Mar 26&nbsp;07:17 /opt/bin/grep-egrep<br /> -rwxr-xr-x 1 root root 23744 Apr 13&nbsp;18:55 /opt/bin/pcregrep<br /> -rwxr-xr-x 1 root root 11364 May 12&nbsp;14:33 /opt/bin/pgrep<br /> lrwxrwxrwx 1 root root 18 Jun 3&nbsp;20:36 /opt/bin/grep -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/egrep -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/fgrep -&gt; /opt/bin/grep-fgrep</p> </blockquote> <blockquote> <p>/shares/Public/WWW/Welcome/Transmission # ./trans_watchdog_ok<br /> egrep: invalid option — o<br /> BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary</p> <p>No help available.</p> <p>./trans_watchdog_ok: ./trans_watchdog_ok: 97: Syntax error: "(" unexpected</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499897</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499897</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 19:23:43 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't really understand:</p> <div class="code"> <pre> <code>lrwxrwxrwx 1 root root 18 Jun 4 20:50 /bin/grep-busy -&gt; /opt/bin/grep-grep lrwxrwxrwx 1 root root 19 Jun 4 20:50 /bin/egrep-busy -&gt; /opt/bin/grep-egrep lrwxrwxrwx 1 root root 19 Jun 4 20:50 /bin/fgrep-busy -&gt; /opt/bin/grep-fgrep</code> </pre></div> <br /> It was ment as a backup… You can delete these <div class="code"> <pre> <code>cd /bin rm grep-busy rm egrep-busy rm fgrep-busy</code> </pre></div> <br /> Does the script run fine now?
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499863</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499863</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 18:52:30 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>~ # mv /bin/grep /bin/grep-busy<br /> ~ # mv /bin/egrep /bin/egrep-busy<br /> ~ # mv /bin/fgrep /bin/fgrep-busy<br /> ~ # ln -s /opt/bin/grep-grep /bin/grep<br /> ~ # ln -s /opt/bin/grep-egrep /bin/egrep<br /> ~ # ln -s /opt/bin/grep-fgrep /bin/fgrep<br /> ~ # /bin/grep -o SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok<br /> SCRIPTVER</p> </blockquote> <blockquote> <p>~ # ls -altr /bin/*grep*<br /> lrwxrwxrwx 1 root root 18 Jun 4&nbsp;20:50 /bin/grep-busy -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:50 /bin/egrep-busy -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:50 /bin/fgrep-busy -&gt; /opt/bin/grep-fgrep<br /> lrwxrwxrwx 1 root root 18 Jun 4&nbsp;20:51 /bin/grep -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:51 /bin/egrep -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 4&nbsp;20:51 /bin/fgrep -&gt; /opt/bin/grep-fgrep<br /> ~ # ls -altr /opt/bin/*grep*<br /> -rwxr-xr-x 1 root root 100396 Mar 26&nbsp;07:17 /opt/bin/grep-grep<br /> -rwxr-xr-x 1 root root 43292 Mar 26&nbsp;07:17 /opt/bin/grep-fgrep<br /> -rwxr-xr-x 1 root root 96284 Mar 26&nbsp;07:17 /opt/bin/grep-egrep<br /> -rwxr-xr-x 1 root root 23744 Apr 13&nbsp;18:55 /opt/bin/pcregrep<br /> -rwxr-xr-x 1 root root 11364 May 12&nbsp;14:33 /opt/bin/pgrep<br /> lrwxrwxrwx 1 root root 18 Jun 3&nbsp;20:36 /opt/bin/grep -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/egrep -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/fgrep -&gt; /opt/bin/grep-fgrep</p> </blockquote> <p>PS: Thanks for your help…</p> <p>If you need something to test in the White version, just let me know.<br /> I have only a 100Mbit router, and the speed is 10-11&nbsp;MB/s if the laptop is directly connected to the router<br /> i think it can handle more, this speed is the max on that 100mb…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499831</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499831</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 18:12:49 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Mmmm….<br /> I think they have done something strange with that featurepack or the white-light doesn't have its own grep…<br /> I'm still considering to buy a white-light….</p> <p>Let's fix your box…<br /> Just copy/paste the following code and you have at least fixed grep….</p> <div class="code"> <pre> <code>mv /bin/grep /bin/grep-busy mv /bin/egrep /bin/egrep-busy mv /bin/fgrep /bin/fgrep-busy ln -s /opt/bin/grep-grep /bin/grep ln -s /opt/bin/grep-egrep /bin/egrep ln -s /opt/bin/grep-fgrep /bin/fgrep /bin/grep -o SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499807</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499807</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 17:43:42 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>1) Executing the script:</p> <blockquote> <p>/bin/grep -o SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok<br /> /bin/grep: invalid option — o<br /> BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary</p> <p>Usage: grep [-ihHnqvsEABC] PATTERN [FILEs…]</p> </blockquote> <p>2) After running the other one:</p> <blockquote> <ol> <li>/opt/bin/grep -o SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok</li> </ol> <p>SCRIPTVER</p> </blockquote> <p>3)</p> <blockquote> <ol> <li>ls -altr /bin/*grep*</li> </ol> <p>lrwxrwxrwx 1 root root 7 Jan 1 1970 /bin/grep -&gt; busybox<br /> lrwxrwxrwx 1 root root 7 Jan 1 1970 /bin/egrep -&gt; busybox<br /> lrwxrwxrwx 1 root root 7 Jan 1 1970 /bin/fgrep -&gt; busybox</p> <ol> <li>ls -altr /opt/bin/*grep*</li> </ol> <p>-rwxr-xr-x 1 root root 100396 Mar 26&nbsp;07:17 /opt/bin/grep-grep<br /> -rwxr-xr-x 1 root root 43292 Mar 26&nbsp;07:17 /opt/bin/grep-fgrep<br /> -rwxr-xr-x 1 root root 96284 Mar 26&nbsp;07:17 /opt/bin/grep-egrep<br /> -rwxr-xr-x 1 root root 23744 Apr 13&nbsp;18:55 /opt/bin/pcregrep<br /> -rwxr-xr-x 1 root root 11364 May 12&nbsp;14:33 /opt/bin/pgrep<br /> lrwxrwxrwx 1 root root 18 Jun 3&nbsp;20:36 /opt/bin/grep -&gt; /opt/bin/grep-grep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/egrep -&gt; /opt/bin/grep-egrep<br /> lrwxrwxrwx 1 root root 19 Jun 3&nbsp;20:36 /opt/bin/fgrep -&gt; /opt/bin/grep-fgrep</p> </blockquote> <p>4) I upgraded the original firmware and then I applied that featurepack: [<a href="http://mybookworld.wikidot.com/forum/t-149988/featurepacks-manager-for-the-whitelight-available">http://mybookworld.wikidot.com/forum/t-149988/featurepacks-manager-for-the-whitelight-available</a>]</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499728</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499728</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 16:25:16 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Do you have the original firmware or did you replace it with the one on this forum?</p> <p>I think I can fix it for you….<br /> But first you have to issue these 2 commands and post the results….<br /> I will then tell you what to do.</p> <div class="code"> <pre> <code>ls -altr /bin/*grep* ls -altr /opt/bin/*grep*</code> </pre></div> <br /> This is what happens when I do it (but I have a blue-ring): <div class="code"> <pre> <code># ls -altr /bin/*grep* lrwxrwxrwx 1 root root 5 Jan 1 1970 /bin/zfgrep -&gt; zgrep lrwxrwxrwx 1 root root 5 Jan 1 1970 /bin/zegrep -&gt; zgrep -rwxr-xr-x 1 root root 33 Jan 18 2008 /bin/fgrep -rwxr-xr-x 1 root root 33 Jan 18 2008 /bin/egrep -rwxr-xr-x 1 root root 2940 Jan 18 2008 /bin/zgrep -rwxr-xr-x 1 root root 71344 Jan 18 2008 /bin/grep [root@mybook ~]# ls -altr /opt/bin/*grep* -rwxr-xr-x 1 root root 154811 May 14 13:44 /opt/bin/msggrep -rwxr-xr-x 1 root root 104332 May 14 14:02 /opt/bin/grep-grep -rwxr-xr-x 1 root root 46916 May 14 14:02 /opt/bin/grep-fgrep -rwxr-xr-x 1 root root 100220 May 14 14:02 /opt/bin/grep-egrep -rwxr-xr-x 1 root root 1390 May 14 14:11 /opt/bin/zgrep -rwxr-xr-x 1 root root 26968 May 14 16:32 /opt/bin/pcregrep -rwxr-xr-x 1 root root 14800 May 14 17:00 /opt/bin/pgrep -rwxr-xr-x 1 root root 1188 May 14 20:15 /opt/bin/zipgrep lrwxrwxrwx 1 root root 18 Jun 3 20:20 /opt/bin/grep -&gt; /opt/bin/grep-grep lrwxrwxrwx 1 root root 19 Jun 3 20:20 /opt/bin/egrep -&gt; /opt/bin/grep-egrep lrwxrwxrwx 1 root root 19 Jun 3 20:20 /opt/bin/fgrep -&gt; /opt/bin/grep-fgrep</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499656</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499656</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 15:06:38 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>which one should I install? Maybe this is the problem, isn't it?</p> </blockquote> <p>no, no… don't think so</p> <p>Let's first focus on "grep".<br /> This should work…. check if /opt/bin/grep does the job.</p> <p>Do you have the special feed for white light installed for your optware?</p> <p>Please.. Other white light users…<br /> Please report if "grep -o" is working on yours…<br /> This is quite a normal option and even my superlightweight DD-WRT router supports it.<br /> Only my dreambox (satellite receiver) doesn't support it and comes with a similar message….</p> <p>If you want to replace busybox, just install the first one….<br /> Beware that it will only execute it if it's first in the path.<br /> In my script the $PATH is set that way.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499466</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499466</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 11:08:04 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have the white version.</p> <p>You mentioned that the busybox is needed from OPTWARE to have the watchdog run properly.</p> <p>I havent installed it yet. In the optware list I have three busybox option:</p> <blockquote> <p>busybox - 1.10.3-1 - A userland replacement for embedded systems.<br /> busybox-base - 1.10.3-1 - A userland replacement for embedded systems.<br /> busybox-links - 1.10.3-1 - A userland replacement for embedded systems.</p> </blockquote> <p>which one should I install? Maybe this is the problem, isn't it?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-499274</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-499274</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 06:37:41 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Which machine do you have?<br /> I think it's a Worldbook White light…<br /> Can other users of a White light confirm that "grep -o" is not working…..</p> <p>BTW….<br /> If you want to test your optware's grep, you should use the command</p> <div class="code"> <pre> <code># /bin/grep -o SCRIPTVER /usr/bin/trans_watchdog SCRIPTVER [root@mybook ~]# /opt/bin/grep -o SCRIPTVER /usr/bin/trans_watchdog SCRIPTVER</code> </pre></div> <br /> As you can see, both of the "greps" are working on my bluering and I'm really surprised it isn't working on yours…. <p>"grep -o" is quite a normal option for grep….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498812</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498812</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 19:02:43 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>1) after executing your command, i have the same grep:</p> <blockquote> <p>grep SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok<br /> SCRIPTVER="Wed Jun 3&nbsp;11:22:18 CEST 2009"</p> </blockquote> <p>2) /opt/etc/trans_watchdog_ok.conf is deleted, should i delete the "trans_watchdog_ok.conf.exclude" as well?</p> <p>3) after "grep -o":</p> <blockquote> <p>grep -o<br /> grep: invalid option — o<br /> BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary</p> <p>Usage: grep [-ihHnqvsEABC] PATTERN [FILEs…]</p> </blockquote> <blockquote> <p>grep -o SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok<br /> grep: invalid option — o<br /> BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary</p> <p>Usage: grep [-ihHnqvsEABC] PATTERN [FILEs…]</p> </blockquote> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498804</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498804</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 18:49:44 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>grep SCRIPTVER /usr/bin/trans_watchdog SCRIPTVER="Wed Jun 3 11:22:18 CEST 2009" grep -o SCRIPTVER /usr/bin/trans_watchdog SCRIPTVER</code> </pre></div> <br /> or in your case…. <div class="code"> <pre> <code>grep SCRIPTVER /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok</code> </pre></div> <br /> If yours is older, redownload it and also delete /opt/etc/trans_watchdog_ok.conf <p>BTW…<br /> What happens if you just enter the command "grep -o" from the prompt</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498795</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498795</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 18:42:09 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Q4:</p> <blockquote> <p>Installing grep (2.5.3-1) to root…<br /> Downloading <a href="http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/grep_2.5.3-1_arm.ipk">http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/grep_2.5.3-1_arm.ipk</a><br /> Installing pcre (7.9-1) to root…<br /> Downloading <a href="http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/pcre_7.9-1_arm.ipk">http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/pcre_7.9-1_arm.ipk</a><br /> Configuring grep<br /> update-alternatives: Linking //opt/bin/grep to /opt/bin/grep-grep<br /> update-alternatives: Linking //opt/bin/egrep to /opt/bin/grep-egrep<br /> update-alternatives: Linking //opt/bin/fgrep to /opt/bin/grep-fgrep<br /> Configuring pcre<br /> Successfully terminated.</p> </blockquote> <p>After run ./trans_watchdog_ok in telnet in the wordlbook i still have the same problem…</p> <p>In the optware list I have three busybox option:</p> <blockquote> <p>busybox - 1.10.3-1 - A userland replacement for embedded systems.<br /> busybox-base - 1.10.3-1 - A userland replacement for embedded systems.<br /> busybox-links - 1.10.3-1 - A userland replacement for embedded systems.</p> </blockquote> <p>Which busybox should i install?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498779</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498779</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 18:19:03 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>Q1: I found the .config file but it is empty. Is it ok?</p> </blockquote> <p>No, that's not OK</p> <blockquote> <p>Q4: I run it and received the following error:</p> </blockquote> <p>Are you running this on a worldbook? Do you have busybox installed from optware?<br /> Run the command:</p> <div class="code"> <pre> <code>which egrep</code> </pre></div> <br /> You can probably fix it by installing "grep" in optware <div class="code"> <pre> <code>ipkg install grep</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498724</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498724</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 17:22:42 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank a lot for the really quick reply! I really appreciate it…</p> <p>Q1: I found the .config file but it is empty. Is it ok?<br /> Q2: I did it.<br /> Q3: OK. Now, I can check it.<br /> Q4: I run it and received the following error:</p> <blockquote> <p>quoted text /shares/Public/WWW/Welcome/Transmission # ./trans_watchdog_ok<br /> egrep: invalid option — o<br /> BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary</p> </blockquote> <p>Do I have ti install something or the error is in the script?</p> <p>Q5: :) How can I restart cron? I do not have any /etc/init.d/crond.sh so can not run</p> <blockquote> <p>/etc/init.d/crond.sh stop<br /> /etc/init.d/crond.sh start</p> </blockquote> <p>thanks in advance</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498697</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498697</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 17:01:02 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Question 1:<br /> You don't have to change the variables in the script anymore.<br /> After running it for the fist time you will have a config-file called /opt/etc/trans_watchdog_ok.conf</p> <p>You can change the variables there….<br /> This also means you can just overwrite trans_watchog with a newer one you download from my site.<br /> Why did you change its name, btw?</p> <p>Question 2:<br /> You should create a symbolic link called /opt/etc/init.d/K10transmission</p> <div class="code"> <pre> <code>cd /opt/etc/init.d ln -s S90transmission K10transmission</code> </pre></div> <p>Question 3:<br /> A log is made in /var/log/messages</p> <p>Question 4:<br /> Yes, new to Linux…. A common mistake. Unlike Windows, a command will not start just because you are in its directory. It must be in its path or you should provide the full path. In your case you should give the command</p> <div class="code"> <pre> <code>./trans_watchdog_ok</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-498682</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-498682</link>
				<description></description>
				<pubDate>Wed, 03 Jun 2009 16:38:13 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK. I new at linux so I tried to follow your advice.<br /> Please find my steps bellow:</p> <p><strong>I have installed these from OPTWARE</strong>:</p> <ol> <li>coreutils</li> <li>findutils</li> <li>procps</li> <li>util-linux-ng</li> </ol> <p>I <strong>put the watch_dog</strong> to: "Public\WWW\Welcome\Transmission\trans_watchdog_ok"<br /> <strong>added the right to it</strong>: chmod +x trans_watchdog_ok<br /> <strong>and put it to 1-min cronjob</strong>: "01 * * * * /shares/Public/WWW/Welcome/Transmission/trans_watchdog_ok"<br /> in "/opt/var/cron/crontabs", using "nano root" command</p> <p><strong>Changed the variables</strong>:<br /> SOURCE=/shares/Public/WWW/Watch-dir<br /> WORK=/shares/Public/WWW/TR-Downloads<br /> TARGET=/shares/Public/WWW/Downloaded<br /> MAILTO=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILFROM=<span class="wiki-email">moc.liamg|XXX#moc.liamg|XXX</span><br /> MAILSERVER="smtp.gmail.com"</p> <div style="clear:both; height: 0px; font-size: 1px"></div> <p>Questions:<br /> 1) Do I have to change anything else in the trans_watchdog_ok?<br /> 2) TRANSSTOP=/opt/etc/init.d/K10transmission is missing —-&gt; I have K90transmission. Should I just rename K10transmission to K90transmission?<br /> 3) Where can I find the error log?<br /> 4) When I wanted to run the "/shares/Public/WWW/Welcome/Transmission # trans_watchdog_ok", I received this: "-sh: trans_watchdog_ok: not found"<br /> How can I run it from the telnet command line if i want to test it alone?</p> <p>Thanks in advance.</p> <p>anpe008</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-496087</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-496087</link>
				<description></description>
				<pubDate>Mon, 01 Jun 2009 12:23:05 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>AFAIK everything is working fine with the latest version and if not I will investigate it and change its code.<br /> Because my worldbook is quite full I'm not downloading that much anymore….</p> <p>I did see a torrent just now that was paused….<br /> Maybe the latest transmission doesn't like it when the file is moved and a symbolic link is placed instead.<br /> Not a problem really as I can add code for that…..</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-496072</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-496072</link>
				<description></description>
				<pubDate>Mon, 01 Jun 2009 12:06:39 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>ok, i will give it a try and report back here…</p> <p>regarding the speed of the new white one:<br /> I did not have the older, blue version, but I have read a lot review and forum about it<br /> before i made my purchase. Each of these reviews said that the new, white version is a BIG improve over the older blue one.<br /> this was the reason to go for the white WD version…</p> <p>Some of them:<br /> <a href="http://www.trustedreviews.com/networking/review/2009/02/18/Western-Digital-My-Book-World-Edition/p1">http://www.trustedreviews.com/networking/review/2009/02/18/Western-Digital-My-Book-World-Edition/p1</a><br /> <a href="http://www.smallnetbuilder.com/content/view/30764/75/">http://www.smallnetbuilder.com/content/view/30764/75/</a><br /> <a href="http://www.smallnetbuilder.com/content/view/30764/75/1/2/">http://www.smallnetbuilder.com/content/view/30764/75/1/2/</a> - Perf test<br /> <a href="http://www.geek.com/articles/chips/review-western-digital-my-book-world-edition-1tb-nas-20090218/">http://www.geek.com/articles/chips/review-western-digital-my-book-world-edition-1tb-nas-20090218/</a><br /> <a href="http://www.crunchgear.com/2009/04/10/review-1tb-western-digital-my-book-world-edition-nas/">http://www.crunchgear.com/2009/04/10/review-1tb-western-digital-my-book-world-edition-nas/</a><br /> <a href="http://www.notebookreview.com/default.asp?newsID=4908">http://www.notebookreview.com/default.asp?newsID=4908</a></p> <p>hope it helps</p> <p>Just one question:<br /> How can I easiest test my white WD perf speed using NFS and CIFS?<br /> I want to test their speed independently…</p> <p>thanks in advance</p> <p>anpe008</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-496015</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-496015</link>
				<description></description>
				<pubDate>Mon, 01 Jun 2009 10:54:42 +0000</pubDate>
				<wikidot:authorName>blackjancsi</wikidot:authorName>				<wikidot:authorUserId>332838</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey frater,</p> <p>I have been messing around with transmission 1.61 lately, but it seems that some features don't quite work - neither the watch folder, nor the scheduling (though it is parametered correctly). The seeding ratio, seems to be working, however, I would prefer the completed file to be moved out of the directory, nevertheless. I have been experimenting with M. Kyykhinen's torrent_helper script before, but that did not quite work, either (no idea, why exactly, on one hand, it tended to crash the daemon, on the other, the scheduler did not work).<br /> I was interested in having a scheduler, something that stops and moves the torrents out of the download directory once they reach a certain seeding ratio, a watch folder (I added a little directory for the torrents added in the past as well, so once it starts dowloading a torrent, instead of deleting the file, it moves it over to another directory). As I wasted a lot of time already with this, I was going to ask you how long this was going to take me (need to learn how to use cron as well, though I can do that on my own, I just don't know how long that'll be), and whether your script works OK with version 1.61.</p> <p>Thanks and good job,<br /> blackjancsi</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-495316</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-495316</link>
				<description></description>
				<pubDate>Sun, 31 May 2009 14:53:29 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It's written in bash script and it even works on other hardware…<br /> But bash scripting is very sensitive to its environment because it often uses the output of programs as parameters.</p> <p>Just try it and let me know if something is not running as it should….</p> <p>I'm in the market for a white light myself.<br /> Can you notice it's faster than a bluering?<br /> Do you know of any alternatives?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-495314</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-495314</link>
				<description></description>
				<pubDate>Sun, 31 May 2009 14:39:53 +0000</pubDate>
				<wikidot:authorName>anpe008</wikidot:authorName>				<wikidot:authorUserId>326731</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello frater,</p> <p>I have the new, white light version of the WD NAS. Does your trans_watchdog work on it?<br /> Thanks in advance.</p> <p>anpe008</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-495272</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-495272</link>
				<description></description>
				<pubDate>Sun, 31 May 2009 12:50:49 +0000</pubDate>
				<wikidot:authorName>blackjancsi</wikidot:authorName>				<wikidot:authorUserId>332838</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>try</p> <p>nano /var/log/messages (will be on the bottom)<br /> or less /var/log/messages</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-467558</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-467558</link>
				<description></description>
				<pubDate>Sun, 03 May 2009 22:25:03 +0000</pubDate>
				<wikidot:authorName>frater</wikidot:authorName>				<wikidot:authorUserId>139187</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It should work with all versions….<br /> Please let me know if you experience any troubles…..</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-143349#post-467542</guid>
				<title>Re: Updated trans_watchdog</title>
				<link>http://mybookworld.wikidot.com/forum/t-143349/updated-trans-watchdog#post-467542</link>
				<description></description>
				<pubDate>Sun, 03 May 2009 21:47:58 +0000</pubDate>
				<wikidot:authorName>khantpr</wikidot:authorName>				<wikidot:authorUserId>185062</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Does this work with tranmission 1.52-2? I am still running 1.42-1. Has anyone seen issues with 1.52 and can give me reasons on why I should not upgrade?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>