<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 11:29 AM, Michael <span dir="ltr"><<a href="mailto:mythtv@blandford.net" target="_blank">mythtv@blandford.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 bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 08/29/2013 08:27 AM, Daryl McDonald
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Aug 29, 2013 at 11:11 AM,
Michael <span dir="ltr"><<a href="mailto:mythtv@blandford.net" target="_blank">mythtv@blandford.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>On 08/29/2013 07:59 AM, Daryl McDonald
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"><br>
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:<br>
<br>
daryl@daryl-A780L3C:~$ SECS=`date -u --date
"2013-08-29 10:50:00" +%s`<br>
daryl@daryl-A780L3C:~$ sudo echo 0 >
/sys/class/rtc/rtc0/wakealarm<br>
bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
daryl@daryl-A780L3C:~$ sudo echo $SECS >
/sys/class/rtc/rtc0/wakealarm<br>
bash: /sys/class/rtc/rtc0/wakealarm: Permission denied<br>
<br>
See! I remain open to suggestions.<br>
<br>
</blockquote>
<br>
<br>
</div>
This is because the echo is running as root, but the
redirect is not, hence the permission denied. If you want
to use sudo you would need to do something like:<br>
<br>
sudo sh -c 'echo 0 > /sys/class/rtc/rtc0/wakealarm'<br>
<br>
Or just become root and run the command.<span><font color="#888888"><br>
<br>
Michael</font></span>
<div>
<div><br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">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></div></div></blockquote></div></div></div>
</blockquote><div><br></div><div>Thanks Michael, It looks like I'm good now:</div><div><br></div><div> daryl@daryl-A780L3C:~$ cat /proc/driver/rtc</div><div>rtc_time<span class="" style="white-space:pre">        </span>: 11:33:21</div>
<div>rtc_date<span class="" style="white-space:pre">        </span>: 2013-08-29</div><div>alrm_time<span class="" style="white-space:pre">        </span>: 11:37:32</div><div>alrm_date<span class="" style="white-space:pre">        </span>: 2013-08-29</div>
<div>alarm_IRQ<span class="" style="white-space:pre">        </span>: no</div><div>alrm_pending<span class="" style="white-space:pre">        </span>: no</div><div>update IRQ enabled<span class="" style="white-space:pre">        </span>: no</div>
<div>periodic IRQ enabled<span class="" style="white-space:pre">        </span>: no</div><div>periodic IRQ frequency<span class="" style="white-space:pre">        </span>: 1024</div><div>max user IRQ frequency<span class="" style="white-space:pre">        </span>: 64</div>
<div>24hr<span class="" style="white-space:pre">                </span>: yes</div><div>periodic_IRQ<span class="" style="white-space:pre">        </span>: no</div><div>update_IRQ<span class="" style="white-space:pre">        </span>: no</div><div>HPET_emulated<span class="" style="white-space:pre">        </span>: yes</div>
<div>BCD<span class="" style="white-space:pre">                </span>: yes</div><div>DST_enable<span class="" style="white-space:pre">        </span>: no</div><div>periodic_freq<span class="" style="white-space:pre">        </span>: 1024</div><div>
batt_status<span class="" style="white-space:pre">        </span>: okay</div><div>daryl@daryl-A780L3C:~$ </div><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 bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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>
</div>
</blockquote>
<div><br>
</div>
<div>My son warned me about becoming root, I am still quite
a newbie, and it shows, below is what happened when I
tried the first option:</div>
<div><br>
</div>
<div> daryl@daryl-A780L3C:~$ SECS=`date -u --date
"2013-08-29 11:45:00" +%s`</div>
<div>daryl@daryl-A780L3C:~$ sudo sh -c echo 0 >
/sys/class/rtc/rtc0/wakealarm</div>
<div>bash: /sys/class/rtc/rtc0/wakealarm: Permission denied</div>
<div>daryl@daryl-A780L3C:~$ sudo sh -c 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>I'm still looking at bricks, this shouldn't be that
complicated, should it?</div>
<div><br>
</div>
<div>Daryl</div>
</div>
<br>
</div>
</div>
<br>
</blockquote>
<br></div></div>
You seem to be missing the ' marks before the echo and at the end of
the line.<span class=""><font color="#888888"><br>
<br>
Michael<br>
<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>Shutting down now to test</div><div><br></div><div>Thanks to all Daryl </div>
</div><br></div></div>