<br><br><div class="gmail_quote">On Fri, Jul 30, 2010 at 10:46 PM, Nick Morrott <span dir="ltr"><<a href="mailto:knowledgejunkie@gmail.com">knowledgejunkie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 31 July 2010 03:27, MacNean Tyrrell <<a href="mailto:dardack@gmail.com">dardack@gmail.com</a>> wrote:<br>
><br>
> On Fri, Jul 30, 2010 at 12:07 PM, <<a href="mailto:mythtv.t.wuuza@xoxy.net">mythtv.t.wuuza@xoxy.net</a>> wrote:<br>
>><br>
</div><div class="im">>> #!/bin/sh<br>
>> while true; do<br>
>> find /dev/video1 -group video > /tmp/waitForVideo<br>
>> if [ `grep video1 /tmp/waitForVideo` ]; then<br>
>> break<br>
>> fi<br>
>> sleep 1<br>
>> done<br>
>><br>
><br>
> You stick the command for the script in your rc.local?<br>
> Just real quick (i left my program days 12 years ago for accounting/computer<br>
> forensics, so bare with me) I know the find command, what does the -group<br>
> video do?<br>
<br>
</div>It restricts find's matching to files owned by group "video" - which<br>
is how the script checks that the udev rule has run successfully.<br>
<br>
$ man find<br>
<br>
gives the details.<br>
<br>
Cheers,<br>
Nick<br>
<font color="#888888"><br>
--<br>
Nick Morrott<br>
<br>
MythTV Official wiki: <a href="http://mythtv.org/wiki/" target="_blank">http://mythtv.org/wiki/</a><br>
MythTV users list archive: <a href="http://www.gossamer-threads.com/lists/mythtv/users" target="_blank">http://www.gossamer-threads.com/lists/mythtv/users</a><br>
<br>
"An investment in knowledge always pays the best interest." - Benjamin Franklin<br>
</font><div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely, <br><br>MacNean C. Tyrrell<br>