<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 10:27 AM, Stephen Worthington <span dir="ltr">&lt;<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Thu, 29 Aug 2013 10:10:48 -0400, you wrote:<br>

<br>
<br>
&gt;If I understand correctly, logging off, instead of powering off will allow<br>
&gt;myth to power off the box and thereby enable powering on for recordings<br>
&gt;when set up properly.<br>
&gt;But I&#39;ve hit a brick wall before I get that far, I&#39;m following the how-to<br>
&gt; for setting the alarm when clock is in RTC, I&#39;ve swapped the &quot;&amp;gt&quot; command<br>
&gt;for &quot;&gt;.&quot; and even prefaced with &quot;sudo&quot; and still permission is denied. What<br>
&gt;have I missed?<br>
&gt;<br>
&gt;daryl@daryl-A780L3C:~$ SECS=`date -u --date &quot;2013-08-29 10:15:00&quot; +%s`<br>
&gt;daryl@daryl-A780L3C:~$ echo 0 &gt;.; /sys/class/rtc/rtc0/wakealarm<br>
<br>
</div>That should be:<br>
<br>
  echo 0 &gt;/sys/class/rtc/rtc0/wakealarm<br>
<div class="im"><br>
&gt;bash: .: Is a directory<br>
&gt;bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
&gt;daryl@daryl-A780L3C:~$ sudo echo 0 &gt;.; /sys/class/rtc/rtc0/wakealarm<br>
<br>
</div>  sudo echo 0 &gt;/sys/class/rtc/rtc0/wakealarm<br>
<div class="im"><br>
&gt;bash: .: Is a directory<br>
&gt;bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
&gt;daryl@daryl-A780L3C:~$<br>
&gt;<br>
&gt;Daryl<br>
<br>
</div>As Chris Porter said, the &amp;gt; on that web page is html for a &gt;<br>
character - it looks like the HTML editing software used to create the<br>
page put it in automatically instead of the correct &gt; character in the<br>
examples, so wherever you see those characters in bash scripts inside<br>
the boxes on that page, replace all 4 characters with one single &gt;<br>
character to get the correct syntax.<br>
<div class=""><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://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></div></div></blockquote><div><br></div><div>I&#39;m still getting permission denied:</div>
<div><br></div><div> daryl@daryl-A780L3C:~$ SECS=`date -u --date &quot;2013-08-29 10:50:00&quot; +%s`</div><div>daryl@daryl-A780L3C:~$ echo 0 &gt; /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div>
<div>daryl@daryl-A780L3C:~$ echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div><div>daryl@daryl-A780L3C:~$ SECS=`date -u --date &quot;2013-08-29 10:50:00&quot; +%s`</div>
<div>daryl@daryl-A780L3C:~$ sudo echo 0 &gt; /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div><div>daryl@daryl-A780L3C:~$ sudo echo $SECS &gt; /sys/class/rtc/rtc0/wakealarm</div>
<div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div><div>daryl@daryl-A780L3C:~$ </div><div><br></div><div>what can I try now?</div><div><br></div><div>Daryl</div></div><br></div></div>