[mythtv-users] Update to Mint 17.2 broke wakeup function.

Douglas Peale Douglas_Peale at comcast.net
Sat Aug 8 06:01:41 UTC 2015


I am trying to debug what is going wrong since upgrading from Mint 17 to Mint 17.2.
I can't tell if the script in "Command to set wakeup time" is being run.

The original command is

sudo sh -c "/usr/bin/setwakeup.sh $time"

. I tried to add echo commands to the "setwakeup.sh" script, but I can't seem to figure out how to get the results into a log file.

I created a directory writable by everyone, and while my "Pre-Shutdown-Check command"

/usr/bin/checklogin.sh >>/path/wakeup.log

does write to the log file, neither

sudo sh -c "/usr/bin/setwakeup.sh $time" >>/path/wakeup.log

nor

sudo sh -c "/usr/bin/setwakeup.sh $time >>/path/wakeup.log"

writes anything to the log file, and the second one prevents the system from automatically shutting down.

even

sudo /usr/bin/setwakeup.sh $time >>/path/wakeup.log

and

sudo sh -c "echo $time >>/path/wakeup.log"

failed to write to the log file

Any help getting some output from this script would be greatly appreciated.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150807/54601981/attachment.sig>


More information about the mythtv-users mailing list