[mythtv-users] shutting down
Brad DerManouelian
myth at dermanouelian.com
Sat Oct 20 03:38:26 UTC 2007
On Oct 19, 2007, at 8:28 PM, victor rajewski wrote:
> On 10/20/07, Brad DerManouelian <myth at dermanouelian.com> wrote:
>> On Oct 19, 2007, at 8:02 PM, victor rajewski wrote:
>>> I'm trying to find a sensible way to shut my combined front/backend
>>> down when the power button on either the remote or the computer is
>>> pressed. I want to check firstly if there are any recordings
>>> going on,
>>> and in that case, do nothing. Where can I check the status of the
>>> backend?
>>
>> mythshutdown --help
>
> So I can just execute that when either button is pressed?
>
> vik
You should write (or find) some sort of perl or shell script that
will get the response from mythshutdown and then perform a poweroff
if mythshutdown says it's cool to do so. Then you can trigger that
script with irexec.
More information about the mythtv-users
mailing list