[mythtv-users] mythfilldatabase: can't run it from cron

Nick knowledgejunkie at gmail.com
Mon Sep 19 12:56:47 UTC 2005


On 19/09/05, James Pattinson <jamesp at hisser.org> wrote:
> Hi All
> 
> I'm in the UK and mythfilldatabase works fine when I run it manually,
> however if it's run from cron I get this error:
> 
> 2005-09-19 13:31:02.190 New DB connection, total: 1
> 2005-09-19 13:31:02.201 New DB connection, total: 2
> 2005-09-19 13:31:02.202 mythfilldatabase: Listings Download Started
> ----------------- Start of XMLTV output -----------------
> 2005-09-19 13:31:02.249 New DB connection, total: 3
> All data is the copyright of the Radio Times website
> <http://www.radiotimes.com> and the use of this data is restricted to
> personal use only.
> 
> term_width must be at least 5 at lib/Class/MethodMaker.pm (autosplit into
> blib/lib/auto/Class/MethodMaker/new_hash_init.al) line 339
> ------------------ End of XMLTV output ------------------
> Error in 1:1: unexpected end of file
> 
> I can't see any options to mythfilldatabase that would help - can any
> suggest a fix for this?

I run the uk_rt grabber from cron with any problems (grabber version
1.77 I think , MythTV 0.18.1). Here is a snippet of my script:

#---------------------------------------------
{
perl /usr/bin/tv_grab_uk_rt --config-file
/home/mythtv/.mythtv/analogue.xmltv --output
/home/mythtv/.mythtv/analogue.xml --quiet
/usr/bin/mythfilldatabase --file 2 -1 /home/mythtv/.mythtv/analogue.xml

sleep 5
rm -f /home/mythtv/.mythtv/analogue.xml

} >/dev/null 2>&1
#---------------------------------------------

I send all output to /dev/null and run the grabber with the quiet
option. Maybe this will help you.

Nick


More information about the mythtv-users mailing list