[mythtv-users] My system events don't seem to be working.....

Stephen Worthington stephen_agent at jsw.gen.nz
Sun Jun 8 16:31:47 UTC 2014


On Sat, 7 Jun 2014 12:31:26 +0100, you wrote:

>On Sat, Jun 7, 2014 at 3:50 AM, David Day <david.scott.day at gmail.com> wrote:
>> I have installed a little test script in my ~/bin/ called Antenna.sh.
>> And I have set up events to trigger this shell script which right now only
>> prints a string into a file in my home directory, but I can see no evidence
>> whatsoever that Myth is attempting to call this script and I am at a loss
>> for what to do next.
>
>Just some thoughts: have you checked that the user running mythbackend
>has permission to write to your home directory?
>
>Does that user have permission to execute the script?
>
>Did you specify the full path to the script?
>
>Linux is generally case sensitive—is the script named Antenna.sh or
>antenna.sh? Which did you type into MythTV?
>
>Sam

And does the script have permissions to write to the file in your home
directory?  That was the problem I had with my event scripts.  Try
creating the file in a directory like /tmp that is writeable by
everyone.  Once you get that working, you will be able to see the
group and owner the file is created with, and you can then set up the
right permissions on the directory you really want it to be written
in.  Pre-creating the output file in that directory can also be a
useful trick (touch <filename>, then chmod and chown).  More
permissions are needed for file creation than for writing to an
existing file.


More information about the mythtv-users mailing list