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

Bill Meek keemllib at gmail.com
Sat Apr 13 20:09:05 UTC 2013


On 04/13/2013 02:53 PM, Larry Roberts wrote:
...
 > I shutdown and pulled power from the box. The IRblaster is taped to the front of the cable box
 > and its in a utility closet with nothing else around. I'm really at a loss as to why it will work perfectly from the command line (I'm doing
> this a root) but will not work when myth does it.  Is it actually mythbackend that calls the script?  I have mythbackend running as root but I'm
> not sure if thats the user that spawns it or not.  I haven't messed with it in so long I honestly dont recall how I set it up.

mythbackend does call the script. You can use ps ax|grep mythbackend|grep -v grep
to see if the backend is started with the --user argument. Mine is started by root,
but uses --user mythtv to run as mythtv.

 From the command line, you'd more accurately execute the script like:

sudo -u mythtv sh -c '/usr/local/bin/cc.sh 123'

--
Bill


More information about the mythtv-users mailing list