[mythtv-users] Broken Perl bindings

Mike Perkins mikep at randomtraveller.org.uk
Thu Apr 24 22:00:18 UTC 2008


Tom Dexter wrote:
> 
> I know the error you're referring to...you get that if MythContext
> (used by optimize_mythdb.pl as of 0.21) can't find valid login info,
> -or- if your home directory is set to /, as is often the case when
> running a cron.
> 
> In my cron scripts that run those processes I just set the HOME to /home/mythtv:
> 
> export HOME=/home/mythtv
> 
> For optimize_mythdb.pl you'll also have to make sure that home has the
> file ~/.mythtv/config.xml with the correct login info, as that's what
> the perl module is using.
> 
My cron job runs as user mythtv...I just added the above line, and lo & 
behold...I now have a clean database, backed up as well.

Thanks all.

Mike Perkins



More information about the mythtv-users mailing list