I'm trying to create my own user job in mythtv, built from sendTVtoNAS. It
works if I run it from the console with the parameters it would be passed
from the database as arguments.
However, if I run it from mythfrontend. it gets queued but when it shows
complete without error, it really hasn't worked. I have some dummy echoes
to a log file that happen immediately on start of the .sh and there isn't
even a log file.
It sounds like a permissions issue but I'm not sure where to check. The
.sh file is in /usr/local/bin with +x on everyone. The workdir for the
command is in /home/jim/Videos that has permissions 777. User jim is part
of group mythtv. I'm assuming that the background userjobs run as user
mythtv.
When I look at the journalctl output it shows:
Jun 06 17:53:56 ubuntu-mythtv mythbackend[1004]: mythbackend[1004]: I
UserJob_25 jobqueue.cpp:2433 (DoUserJobThread) JobQueue: Started
sendTVtoNAS for "Mission: Impossible Rogue
Nation" recorded from channel 15009 at 2023-06-06T00:00:00Z
Jun 06 17:53:56 ubuntu-mythtv mythbackend[1004]: mythbackend[1004]: I
UserJob_25 jobqueue.cpp:2485 (DoUserJobThread) JobQueue: Finished
sendTVtoNAS for "Mission: Impossible Rogu
e Nation" recorded from channel 15009 at 2023-06-06T00:00:00Z
The parameters in setup are:
/usr/local/bin/TVShowToNAS.sh "%CHANID%" "%STARTTIMEUTC%" "%TITLE%"
"%SUBTITLE%" "%SEASON%" "%EPISODE%" "%FILE%" "%DIR%"
The permissions of the .sh are:
mythtv@ubuntu-mythtv:~$ ls -l /usr/local/bin/TVShowToNAS.sh
-rwxr-xr-x 1 root root 6195 Jun 6 17:47 /usr/local/bin/TVShowToNAS.sh
So what did I miss??
Jim A
works if I run it from the console with the parameters it would be passed
from the database as arguments.
However, if I run it from mythfrontend. it gets queued but when it shows
complete without error, it really hasn't worked. I have some dummy echoes
to a log file that happen immediately on start of the .sh and there isn't
even a log file.
It sounds like a permissions issue but I'm not sure where to check. The
.sh file is in /usr/local/bin with +x on everyone. The workdir for the
command is in /home/jim/Videos that has permissions 777. User jim is part
of group mythtv. I'm assuming that the background userjobs run as user
mythtv.
When I look at the journalctl output it shows:
Jun 06 17:53:56 ubuntu-mythtv mythbackend[1004]: mythbackend[1004]: I
UserJob_25 jobqueue.cpp:2433 (DoUserJobThread) JobQueue: Started
sendTVtoNAS for "Mission: Impossible Rogue
Nation" recorded from channel 15009 at 2023-06-06T00:00:00Z
Jun 06 17:53:56 ubuntu-mythtv mythbackend[1004]: mythbackend[1004]: I
UserJob_25 jobqueue.cpp:2485 (DoUserJobThread) JobQueue: Finished
sendTVtoNAS for "Mission: Impossible Rogu
e Nation" recorded from channel 15009 at 2023-06-06T00:00:00Z
The parameters in setup are:
/usr/local/bin/TVShowToNAS.sh "%CHANID%" "%STARTTIMEUTC%" "%TITLE%"
"%SUBTITLE%" "%SEASON%" "%EPISODE%" "%FILE%" "%DIR%"
The permissions of the .sh are:
mythtv@ubuntu-mythtv:~$ ls -l /usr/local/bin/TVShowToNAS.sh
-rwxr-xr-x 1 root root 6195 Jun 6 17:47 /usr/local/bin/TVShowToNAS.sh
So what did I miss??
Jim A