<br><br><div><span class="gmail_quote">On 5/11/06, <b class="gmail_sendername">Xamindar</b> &lt;<a href="mailto:junkxamindar@gmail.com">junkxamindar@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First of all has anyone done this?<br><br>What I am going to try to do is have a cron job that will check to see<br>if my desktop is up and then mount the video directory of my desktop<br>onto my mythtv box. Then hopefully add a menu option to browse that
<br>folder and launch a program like xine or mplayer with the files. It will<br>also have to check every minute or so and unmount the share if my<br>desktop goes down.<br><br>I already made the script and it works pretty good:
<br><br>#!/bin/bash<br><br>## Set these variables for your system<br>#STORAGE should be set to where you localy (on mythtv box) mount your<br>samba share<br>STORAGE=/mnt/video/external_videos<br># set this one to the ip or hostname of the computer with the share to
<br>be mounted<br>COMPUTER=<a href="http://192.168.2.22">192.168.2.22</a><br># Your samba share<br>SHARE=//192.168.2.22/storage<br>#########Do not modify the following##########<br><br># Set variables<br>MOUNTED=`mount | grep -c -m 1 $STORAGE`
<br>UP=`ping -c1 $COMPUTER | grep &quot;[0-9] received&quot; | awk '{print $4}'`<br>#Thanks Seth ;)<br><br># Check if the machine is up AND not mounted, then mount the share<br><br>if [ &quot;$UP&quot; == &quot;1&quot; ] &amp;&amp; [ &quot;$MOUNTED&quot; == &quot;0&quot; ]; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smbmount $SHARE $STORAGE -o guest<br>fi<br><br># Check if the machine is down AND mounted, then unmount the share<br><br>if [ &quot;$UP&quot; == &quot;0&quot; ] &amp;&amp; [ &quot;$MOUNTED&quot; == &quot;1&quot; ]; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;umount -l $STORAGE<br>fi<br><br><br>Now I just need to figure out a way to have mythtv display a list of the<br>folder's contents and allow me to select files to by played.&nbsp;&nbsp;I tried<br>using myth video but it doesn't show any files to be played.&nbsp;&nbsp;Also, it
<br>would be useful if I could select a bunch of files and have it play them<br>all one after the other for example in a playlist.<br><br>Any ideas of what I can add to my mythtv menus?<br><br>Thanks.<br>_</blockquote><div>
<br></div></div>Hi, <br><br>Sorry i can t help you with this in the slightest, but you might have helped me figure out a wayto copy new recordings to my main machine or my laptop so i can watch thenon the trian into work.
<br><br>thanks<br><br>CH<br>