How often do you run this? What is your cron schedule?<br><br><div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">Tom Greer</b> <<a href="mailto:trgreer@gmail.com">trgreer@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've been using MythTV for a couple of years now. I absolutely love<br>it. My thanks to the developers.
<br><br>In my home, I have four combo frontend/backend systems. Three have<br>Motorola DCT-6xxx boxes attached. The fourth is connected to an<br>HDHomeRun unit.<br><br>At this point, the system is pretty stable. However, my most frequent
<br>points of failure are the DCT boxes. Every couple of days one of the<br>boxes just decides to stop responding.<br><br>Jim Westfall's firewire_tester program was a godsend. Whenever one of<br>the boxes would go to sleep, one or two shots of firewire_tester would
<br>bring it back to life.<br><br>I figured that a good way to keep the DCT boxes alive was to run<br>firewire_tester in cron. The big problem was making sure Myth was not<br>already streaming from the box.<br><br>So I decided to write my first shell script to test whether the boxes
<br>were already busy, and if not, then to execute firewire_tester.<br><br>I wanted one script that would run successfully on each of the three<br>boxes. In addition, I wanted it to be robust enough to determine<br>which port connected to the DCT box (the assigned port may change on
<br>reboot).<br><br>So the script, first gets the status report output in xml from the<br>master backend (in order to determine which tuner is connected to this<br>backend and whether it is busy).<br><br>Then it runs plugreport to determine whether which port is active.
<br><br>Finally, it executes firewire_tester (if the tuner is not in use).<br><br>I am posting the script here because it may be of use to people who<br>are be experiencing the similar problems. If you have your DCT boxes
<br>daisy-chained or if your node is not always zero, then you will need<br>to tweak the script. Otherwise, I believe it will work as it is for<br>you.<br><br>In addition, since this is my first shell script, I'd appreciate some
<br>constructive feedback on form.<br><br>Tom<br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote></div><br>