[mythtv-users] execute command before shutdown the frontend

George Nassas gnassas at mac.com
Sun Aug 25 17:54:53 UTC 2013


On 2013-08-25, at 12:23 PM, Josu Lazkano wrote:

> Hello, I want to execute a command before mythtv shutdown.


Have a look at system events:

    http://www.mythtv.org/wiki/MythTV_System_Events

there’s one for backend shutdown which would accomplish what you want, not sure about frontend exit which might be more relevant. You attach commands to events using the myth-setup program.

Potential pitfalls are some TVs don’t have explicit power off IR codes - they only have ones to toggle the power state so myth may turn on your TV when it's off. Also, if the backend finishes recording while you’re watching something on another input, say a DVD, then the backend will rudely turn off the TV on you when it shuts down. Much hilarity will ensue.

YMMV but anyway a system event is your entry point.

- George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130825/e788c921/attachment.html>


More information about the mythtv-users mailing list