<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"><<a href="mailto:mythtv-users@lists.boehmi.net" target="_blank">mythtv-users@lists.boehmi.net</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 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"><<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>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><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><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.</blockquote>
</div></div><div>I'm still getting permission denied:</div><div class="im">
<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></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<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 "sudo" preface and still I'm denied:</div>
<div><br></div><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><div><br></div><div>See! I remain open to suggestions.</div><div><br>
</div><div>Daryl</div></div><br></div></div>