[mythtv-users] channel changes via script suddenly stopped working--diagnose help

Larry Roberts mythtv at american-hero.com
Sat Apr 13 18:10:46 UTC 2013


On 4/13/2013 12:56 PM, Raymond Wagner wrote:
> On 4/13/2013 12:05 PM, Stephen Worthington wrote:
>> On Sat, 13 Apr 2013 11:27:57 -0400, you wrote:
>>> On 4/13/2013 11:25 AM, Bill Meek wrote:
>>>> You should see the cc.sh command as it's executed. Use --setverbose
>>>> general to restore normal logging.
>>>
>>> 2013-04-13 11:22:14.050929 I [1795/1910] TVRecEvent system-unix.cpp:868
>>> (Fork) - Managed child (PID: 2481) has started! *&
>>> command=/usr/local/bin/cc.sh 18, timeout=0
>>>
>>> Do you happen to know what the timeout=0 value implies?
>>
>> A timeout value of 0 is commonly used in programming to mean no
>> timeout.  But I do not know for sure if that is what is meant here.
>
> Correct. The "*" means it will be wrapped in a shell (/bin/sh), the 
> "&" means it will not block the thread that ran it, and "timeout=0" 
> means it will be allowed to run indefinitely, until it terminates on 
> its own, or some external thread decides to terminate it.
>
> Is it possible that being wrapped in a shell, the run environment is 
> not exactly what you expected, and that is causing some relative paths 
> to be incorrect?  Perhaps `irsend` is not in the path? It's not a 
> login shell, so the environment should not be substantially different, 
> but it's work investigating.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
So a little further updating.  I can see the channel change when I'm 
recording and run the script manually but I dont see the channel change 
upon a start of a recording as myth would do. I put the full path to 
IRSEND and it has execute for rwxr.xr.x permissions which should be ok 
but I still dont see the channel change being reflected at startup.

I started playing around with various channel changes and hit upon 
something.  If I select a channel that is the same number (22,33,44) it 
works.  If I select a channel that isn't like that (31) then I end up on 
channel 11.  select another channel (15) and end up on 55.  This doesn't 
seem to occur when I run the script manually. Unfortantely I dont have 
enough info at the beginning to see what is being sent, only what 
channel I end up on.

I can see that myth is sending the proper channel and watching the while 
loop shows that it executes properly so im really puzzled now.  What 
would cause irsend when running via myth to duplicate the last number 
(or perhaps both I cant tell).






More information about the mythtv-users mailing list