[mythtv-users] Job Queue

James Linder jam at tigger.ws
Sat Feb 28 10:49:04 UTC 2015


> On 28 Feb 2015, at 5:21 pm, mythtv-users-request at mythtv.org wrote:
> 
>>> rs-request at mythtv.org wrote:
>>> 
>>>>> I took Eric?s transcode scripts, setup a recording to perform Job Queue
>>>> with (I think) all the details as described.
>>>>> 2 Days later the Job is in the list with status:QUEUED
>>>>> 
>>>>> Clearly I?m doing something wrong but there is so much I don?t know what
>>>> to post and ask for help about:
>>>> 
>>>> I vaguely recall having the same problem when I first setup a transcode
>>>> job. You need to enable the job to run on whatever backend(s) it's to be
>>>> run on - by default the user jobs are not enabled. So it's in the queue -
>>>> but nothing is enabled to pick it up and run it.
>>>> 
>>>> Can't remember where that setting is though - it was years ago and I've
>>>> not touched it since.
>>> 
>>> Open the BE setup > General > page 8.
>> 
>> First thanks for the info on enabling the job queue
>> 
>> Erics scripts, as I downloaded are wrong
>> 
>> echo arg0 $0 arg1:JOBID $1 arg2:FILE $2 arg3:TITLE $3 >/tmp/x
>> FILE=$1                           <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Wrong $1 is JOBID SB $2
>> TITLE=$2                          <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Wrong $2 is File Name SB $3
>> 
>> Is there a more substantial guid that I can refer to or is this whole exercise spelunk and discover?
>> 
>> James
>> _______________________________________________
> 
> If I recall correctly (the threading on this thread seems completely stuffed), you changed one of the files from toandroid.sh to mythtoandroid.sh. From my quick review that should not have been required and / or can't work.
> 
> If I read it correctly, there are three files that all need to be placed in /usr/local/bin/
> 
> They would be called mythtoandroid.sh, toandroid.sh and mythvidexport.eric.py
> 
> If you don't have or don't use /usr/local/bin/ you would need to update file paths to align with your file paths accordingly.
> 
> I suspect that if you are renaming files you probably only have 2 of the 3 required files.
> 
> But having said that i only made a very cursory review of what Eric did, I could be mistaken.

First Eric thanks. I was very naive and struggled lots, but your stuff was incredibly helpful.
Next I changed nothing just followed blindly

I found a few errors: The job provides 3 arguments, jobid, file, title, the script expects two: file and title.
I cut-n-pasted from the mail. The job had $BLA$<cr>$FILE$ but the <cr> was not shown and messed up args being sent to the script ie
cmd bla bla
title
Once I learned enough to wade through I got it working sweetly.

My question is ‘does really dumb doco exist’ or is it ‘spelunk until you understand’
Erics stuff works beautifully but it takes careful understanding to get all running, in particular it does not work out-the-box for bears of little brain like me 

James


More information about the mythtv-users mailing list