<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Daryl McDonald wrote:<br>
    </div>
    <blockquote
cite="mid:CAMwtTBC-3a_1+ep9itf59dOy+A6AK5ZZSVwVnU-BThfpNHO9+w@mail.gmail.com"
      type="cite">
      <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
                moz-do-not-send="true"
                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've hit a brick wall before I get that far, I'm
                following the how-to<br>
                &gt; for setting the alarm when clock is in RTC, I've
                swapped the "&amp;gt" command<br>
                &gt;for "&gt;." and even prefaced with "sudo" and still
                permission is denied. What<br>
                &gt;have I missed?<br>
                &gt;<br>
                &gt;daryl@daryl-A780L3C:~$ SECS=`date -u --date
                "2013-08-29 10:15:00" +%s`<br>
                &gt;daryl@daryl-A780L3C:~$ echo 0 &gt;.;
                /sys/class/rtc/rtc0/wakealarm<br>
                <br>
              </div>
              That should be:<br>
              <br>
              &nbsp; 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>
              &nbsp; 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.</blockquote>
            <div>I'm still getting permission denied:</div>
            <div><br>
            </div>
            <div>&nbsp;daryl@daryl-A780L3C:~$ SECS=`date -u --date
              "2013-08-29 10:50:00" +%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 "2013-08-29
              10:50:00" +%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:~$&nbsp;</div>
            <div><br>
            </div>
            <div>what can I try now?</div>
          </div>
        </div>
      </div>
    </blockquote>
    All these commands need root privileges. Either you use "sudo" in
    front of each command or get a root shell with "sudo bash" and try
    all commands there.<br>
    <br>
    HTH<br>
    Thomas<br>
  </body>
</html>