<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"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></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>
>If I understand correctly, logging off, instead of powering off will allow<br>
>myth to power off the box and thereby enable powering on for recordings<br>
>when set up properly.<br>
>But I've hit a brick wall before I get that far, I'm following the how-to<br>
> for setting the alarm when clock is in RTC, I've swapped the "&gt" command<br>
>for ">." and even prefaced with "sudo" and still permission is denied. What<br>
>have I missed?<br>
><br>
>daryl@daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:15:00" +%s`<br>
>daryl@daryl-A780L3C:~$ echo 0 >.; /sys/class/rtc/rtc0/wakealarm<br>
<br>
</div>That should be:<br>
<br>
echo 0 >/sys/class/rtc/rtc0/wakealarm<br>
<div class="im"><br>
>bash: .: Is a directory<br>
>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
>daryl@daryl-A780L3C:~$ sudo echo 0 >.; /sys/class/rtc/rtc0/wakealarm<br>
<br>
</div> sudo echo 0 >/sys/class/rtc/rtc0/wakealarm<br>
<div class="im"><br>
>bash: .: Is a directory<br>
>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
>daryl@daryl-A780L3C:~$<br>
><br>
>Daryl<br>
<br>
</div>As Chris Porter said, the &gt; on that web page is html for a ><br>
character - it looks like the HTML editing software used to create the<br>
page put it in automatically instead of the correct > 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 ><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'm still getting permission denied:</div>
<div><br></div><div> daryl@daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:50:00" +%s`</div><div>daryl@daryl-A780L3C:~$ echo 0 > /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div>
<div>daryl@daryl-A780L3C:~$ echo $SECS > /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div><div>daryl@daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:50:00" +%s`</div>
<div>daryl@daryl-A780L3C:~$ sudo echo 0 > /sys/class/rtc/rtc0/wakealarm</div><div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div><div>daryl@daryl-A780L3C:~$ sudo echo $SECS > /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>