[mythtv-users] external channel changing script lag problems
Joe Auty
joe at netmusician.org
Sun Oct 7 22:25:32 UTC 2007
Thanks!
Clever solution... seems to work just fine for me! I'm not much of a
shell scripter so I wasn't sure about how to have a shell script accept
a command line variable like this :))
Doug Young wrote:
> On 10/7/07, Joe Auty <joe at netmusician.org> wrote:
>> How would I do that? What exactly needs to be entered into the external
>> channel change database field to do this? I thought that basically
>> channels were piped to the value of this field (which is the path to the
>> script)? How can I include the channel variable within this field value?
>
> How about this...use two scripts. One for myth that takes an arg, and
> then calls the second in the background while returning control to
> myth, and the second to do the real work.
>
> ie:
> Listing of changeexternchan.sh
> ------------------
> #!/bin/bash
>
> reallychangeexternchan.sh $1 &
> ------------------
>
> where reallychangeexternchan.sh is your script from above.
>
> I actually do something similar, except my "really change external
> channel" is a daemon that is always running, listening on a named
> pipe, so myth's channel changer simply writes the channel number to
> the named pipe and exits, letting the daemon handle the rest.
--
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe at netmusician.org
More information about the mythtv-users
mailing list