[mythtv-users] Problem with mythfilldatabase and the crontab

duckeo duckeo at gmail.com
Sat Nov 12 20:21:44 EST 2005


Okay this one is driving me nuts.

I've got my local myth user configured to use mythfilldatabase with
tv_grab_au. If I run this manually from the command line as mythtv, it works
fine.

I configure up my crontab to run the same job:

mythtv at mythtv:~$ crontab -l
00 23 * * * /usr/local/bin/mythfilldatabase

It was set to run once a day early in the morning (but it's 11:00p for
testing purposes).

When I check my mythweb status, it says mythfilldatabase last failed and I
verify this with the guide still not having the correct data.

I set up the crontab to pipe the output to a file:

mythtv at mythtv:~$ crontab -l
00 23 * * * /usr/local/bin/mythfilldatabase > /var/log/mythfilldatabase.log

and in that log, the next day:
mythtv at mythtv:~$ cat /var/log/mythfilldatabase.log
2005-11-12 23:00:02.969 New DB connection, total: 1
2005-11-12 23:00:03.048 New DB connection, total: 2
----------------- Start of XMLTV output -----------------
2005-11-12 23:00:03.170 New DB connection, total: 3
------------------ End of XMLTV output ------------------
Updating icons for sourceid: 1
2005-11-12 23:00:03.207 New DB connection, total: 4

That's all I see, no reason for a failure. My Crontab log shows it is
running as the correct user:

root at mythtv:/home/mythtv# cat /var/log/cron.1
/usr/sbin/crond 2.3.3 dillon, started, log level 8
USER mythtv pid 18998 cmd /usr/local/bin/mythfilldatabase

Is there some environment variable I need to set within the cron job itself?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20051113/310bc90c/attachment.htm


More information about the mythtv-users mailing list