[mythtv] Cannot get User jobs to execute

Paul Paul paul2004 at writeme.com
Tue Dec 19 03:08:37 UTC 2006


I have a bash script I want to be run when a recording has finished.  I
added the user jobs in mythsetup, and when it didn't work, kept tweaking
the settings table directly, but with no luck.  Here is what I've got: 
select * from settings where value like '%userjob1%':
JobAllowUserJob1   1   mythbox
UserJob1    /usr/sbin/SaveMythRecording.sh %CHANID% %STARTTIME% %DIR%
%FILE%  mythbox
AutoRunUserJob1   1   mythbox
UserJobDesc1     My user job       mythbox

NOTE: I also added another set of duplicate records with hostname=null. 
In my "record" table autouserjob1 is "1" for all shows.  And I confirmed
in mythweb that it is checked.  I've tried reloading the front end and
back end.  And I've confirmed the permissions on the script allow
execution (ie -rwxr-xr-x).  The bash script just contains a simple:
#!/bin/bash
echo "$(date) $0-$1-$2-$3-$4" >> /home/donerecording.log

so I will know when the script is being run (my home directory has full
permissions).  But that file is never created.  In my mythbackend.log
when a recorded program is over there is no mention of the user job:
2006-12-18 18:30:00.568 TVRec(1): Changing from RecordingOnly to None
2006-12-18 18:30:01.236 Finished recording Chinese News: channel 1008
2006-12-18 18:30:01.251 Reschedule requested for id 0.
2006-12-18 18:30:01.443 Finished recording Chinese News: channel 1008
0: start_time: 0.036 duration: 161.760
1: start_time: 0.026 duration: 161.739
stream: start_time: 0.289 duration: 1797.440 bitrate=5203 kb/s
2006-12-18 18:30:02.063 AFD: Opened codec 0x824daa0, id(MPEG2VIDEO)
type(Video)
2006-12-18 18:30:02.058 Scheduled 1 items in 0.8 = 0.61 match + 0.19
place
2006-12-18 18:30:02.098 AFD: Opened codec 0x824ca40, id(MP2) type(Audio)

Anybody have any ideas?  Thanks for any help.

-- 
Low Prices, Wide Selection of Gas Masks
Everyday low price guarantee. We offer special police discounts and an extremely wide selection of gas masks, filters and huge selection of preparedness gear.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=24e08df2353d2e6cb9bae3a0e3c8c61e

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20061218/f8d49223/attachment.htm 


More information about the mythtv-dev mailing list