[mythtv-users] Query backend status

Robert Dege livemotion at gmail.com
Wed May 7 14:32:54 UTC 2014


@Bill, @Jan: Thanks for the info.  Both methods work great, and allow me to
integrate frontend status into my script.

Between querying the Frontend, and the mythtv-status command, I can monitor
mythtv usage from the command line :)

-Robert


On Mon, May 5, 2014 at 1:13 AM, Jan Ceuleers <jan.ceuleers at gmail.com> wrote:

> On 05/04/2014 10:29 PM, R Kannan wrote:
> > @Hika:  I'd like to write a shell script that will automatically update
> the
> > system when mythbackend is idle (not recording, and no mythfrontend
> usage).
>
> Here is some inspiration for you:
>
> #!/bin/bash
> nc fe3 6546 -i 1 > /tmp/frontendStatus.out <<EOS
> query location
> quit
> EOS
>
> ! tail -2 < /tmp/frontendStatus.out | grep -e "# Playback" > /dev/null
>
> What this shows is how to ask a frontend what it's doing. This
> particular script is only interested in the Playback state, but more
> options are available:
>
> http://www.mythtv.org/wiki/Frontend_control_socket
>
> Jan
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140507/c8225328/attachment.html>


More information about the mythtv-users mailing list