[mythtv-users] Change Chanel Scripts
Nick Morrott
knowledgejunkie at gmail.com
Fri May 11 01:09:12 UTC 2007
On 11/05/07, Gary <gwgrover at windstream.net> wrote:
> I copied a couple of scripts from the URL:
> http://losdos.dyndns.org:8080/public/mythtv-info/MythTV_DISH_IR_LED_TX_via_Modified_LIRC.html
> The two scripts are dish_chan.sh and dish_info.sh.
> dish_chan.sh changes the channel ok when run from a command line and
> also when executed by mythtv.
> dish_info.sh does it's thing ok when dish_chan.sh is run from a command
> line. But when dish_chan.sh is started by mythtv, the "info" display
> failes to show up on the recording.
>
> Anyone have any ideas why? and what to do about it?
>
> *_HERE ARE THE SCRIPTS:
> _**_
> _*cat /usr/local/bin/dish_chan.sh
> #!/bin/sh
> # SCRIPT 1: change the channel
> #
> # REMOTE_NAME=JVC_RAW
> REMOTE_NAME=dish
> for digit in $(echo $1 | sed -e 's/./& /g'); do
> irsend SEND_ONCE $REMOTE_NAME $digit
> # sleep 0.4 # note this may have to be adjusted up for some models
> sleep 0.3 # note this may have to be adjusted up for some models
> done
> irsend SEND_ONCE $REMOTE_NAME select
> #
> # asynchronously display the program info screen
> if [ -s /usr/local/bin/dish_info.sh -a -x /usr/local/bin/dish_info.
.. and where's the rest of the script? The if[] test is broken, so
nothing will happen.
The script will still change channel because this occurs before it
looks for the dish_info.sh script.
Nick
--
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users
"An investment in knowledge always pays the best interest." - Benjamin Franklin
More information about the mythtv-users
mailing list