Hi,<br><br>I have just one unresolved issue with the mythtv box: when
the computer is automatically started (e.g. through nvram-wakeup) , I
would like it to keep from starting the fronted so that the backend
will shut the bow down again after the recording is completed.<br><br>For this, I use the following startupCommand:<br><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">mythtv@mythtv ~ $ cat /usr/local/bin/mythguictrl<br>
#!/usr/bin/perl<br>
  <br>
use warnings;<br>
use strict;<br>
  <br>
package main;<br>
  <br>
  <br>
my $lockfile ='/home/mythtv/.mythguilock';<br>
  <br>
-e $lockfile and unlink $lockfile;<br>
  <br>
if( $ARGV[0] and ( $ARGV[0] eq &quot;auto&quot;) ){<br>
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open LOCK,'&gt;',$lockfile;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print LOCK &quot;1&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;close LOCK;<br>
  <br>
}</blockquote>
<div><br>
This script&nbsp; works as&nbsp; expected:<br>
<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
  <blockquote>&nbsp;mythtv@mythtv ~ $ /usr/local/bin/mythguictrl auto<br>
mythtv@mythtv ~ $ ls -al /home/mythtv/.mythguilock<br>
-rw-r--r--&nbsp; 1 mythtv users 1 Jul 10 13:19 /home/mythtv/.mythguilock<br>
mythtv@mythtv ~ $ /usr/local/bin/mythguictrl user<br>
mythtv@mythtv ~ $ ls -al /home/mythtv/.mythguilock<br>
ls: /home/mythtv/.mythguilock: No such file or directory<br>
  </blockquote>
</blockquote>
<br>
I've set this up in the database:<br>
<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
  <blockquote>mythtv@mythtv ~ $ echo &quot;SELECT * FROM settings WHERE value = 'startupCommand';&quot; |mysql -umythtv -p mythconverg<br>
Enter password:<br>
value&nbsp;&nbsp; data&nbsp;&nbsp;&nbsp; hostname<br>
startupCommand&nbsp; /usr/local/bin/mythguictrl $status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL<br>
  </blockquote>
</blockquote>
<br>
However, when MythTV starts up automatically, the lockfile is not created.<br>
Does anyone know how to resolve this? I think it worked in 0.17, but I have reinstalled everything since then due to a <br>
meltdown.<br>
<br>
/Fredrik<br>
</div><br><br><br>-- <br>My Gentoo + PVR-350 + IVTV + MythTV blog is on&nbsp;&nbsp;<br><a href="http://gentoomythtv.blogspot.com/">http://gentoomythtv.blogspot.com/</a><br><br>