[mythtv-users] Carbon Footprint

Daryl McDonald darylangela at gmail.com
Thu Aug 29 15:36:09 UTC 2013


On Thu, Aug 29, 2013 at 11:29 AM, Michael <mythtv at blandford.net> wrote:

>  On 08/29/2013 08:27 AM, Daryl McDonald wrote:
>
>
>
>
> On Thu, Aug 29, 2013 at 11:11 AM, Michael <mythtv at blandford.net> wrote:
>
>> On 08/29/2013 07:59 AM, Daryl McDonald wrote:
>>
>>>
>>> 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:
>>>
>>> daryl at daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 10:50:00" +%s`
>>> daryl at daryl-A780L3C:~$ sudo echo 0 > /sys/class/rtc/rtc0/wakealarm
>>> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
>>> daryl at daryl-A780L3C:~$ sudo echo $SECS > /sys/class/rtc/rtc0/wakealarm
>>> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
>>>
>>> See! I remain open to suggestions.
>>>
>>>
>>
>>  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:
>>
>> sudo sh -c 'echo 0 > /sys/class/rtc/rtc0/wakealarm'
>>
>> Or just become root and run the command.
>>
>> Michael
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>
>
Thanks Michael, It looks like I'm good now:

 daryl at daryl-A780L3C:~$ cat /proc/driver/rtc
rtc_time : 11:33:21
rtc_date : 2013-08-29
alrm_time : 11:37:32
alrm_date : 2013-08-29
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1024
max user IRQ frequency : 64
24hr : yes
periodic_IRQ : no
update_IRQ : no
HPET_emulated : yes
BCD : yes
DST_enable : no
periodic_freq : 1024
batt_status : okay
daryl at daryl-A780L3C:~$

>
>  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:
>
>   daryl at daryl-A780L3C:~$ SECS=`date -u --date "2013-08-29 11:45:00" +%s`
> daryl at daryl-A780L3C:~$ sudo sh -c echo 0 > /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$ sudo sh -c echo $SECS >
> /sys/class/rtc/rtc0/wakealarm
> bash: /sys/class/rtc/rtc0/wakealarm: Permission denied
> daryl at daryl-A780L3C:~$
>
>  I'm still looking at bricks, this shouldn't be that complicated, should
> it?
>
>  Daryl
>
>
>
> You seem to be missing the ' marks before the echo and at the end of the
> line.
>
> Michael
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users


Shutting down now to test

Thanks to all Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130829/6e526b86/attachment.html>


More information about the mythtv-users mailing list