I have been using the 'directv.pl' script in mythtv (to change channels on my satellite box) for some time now. However this is limited control of my stb.
I built a template for my DirecTV HR20, and read about changing channels using the TuneToChannel.sh script
This script invokes command #187 (Tune to Channel). I assume I need to write a script inside this command to send the recieved channel to my STB (via RS232).
I am not sure how to 'capture' the channel sent by the TuneToChannel.sh script within Command #187. Do I read the command line parameters passed? If so, where can i read up on how this is done?