[mythtv-users] Carbon Footprint
Michael
mythtv at blandford.net
Thu Aug 29 15:11:35 UTC 2013
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
More information about the mythtv-users
mailing list