<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 10:52 AM, Thomas Boehm <span dir="ltr">&lt;<a href="mailto:mythtv-users@lists.boehmi.net" target="_blank">mythtv-users@lists.boehmi.net</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 text="#000000" bgcolor="#FFFFFF">
    <div>Daryl McDonald wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote"><div><div class="h5">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>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><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><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></div><div>I&#39;m still getting permission denied:</div><div class="im">
            <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></div>
        </div>
      </div>
    </blockquote>
    All these commands need root privileges. Either you use &quot;sudo&quot; in
    front of each command or get a root shell with &quot;sudo bash&quot; and try
    all commands there.<br>
    <br>
    HTH<span class=""><font color="#888888"><br>
    Thomas<br>
  </font></span></div>

<br>_______________________________________________<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></blockquote><div><br></div><div>Of the three commands the first one gets no complaint, with the second attempt I did add the &quot;sudo&quot; preface and still I&#39;m denied:</div>
<div><br></div><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><div><br></div><div>See! I remain open to suggestions.</div><div><br>
</div><div>Daryl</div></div><br></div></div>