Okay this one is driving me nuts.<br><br>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.<br><br>I configure up my crontab to run the same job:
<br><br>mythtv@mythtv:~$ crontab -l<br>00 23 * * * /usr/local/bin/mythfilldatabase<br><br>It was set to run once a day early in the morning (but it's 11:00p for testing purposes).<br><br>When I check my mythweb status, it says mythfilldatabase last failed and I verify this with the guide still not having the correct data.
<br><br>I set up the crontab to pipe the output to a file:<br><br>mythtv@mythtv:~$ crontab -l<br>00 23 * * * /usr/local/bin/mythfilldatabase > /var/log/mythfilldatabase.log <br><br>and in that log, the next day:<br>mythtv@mythtv
:~$ cat /var/log/mythfilldatabase.log <br>2005-11-12 23:00:02.969 New DB connection, total: 1<br>2005-11-12 23:00:03.048 New DB connection, total: 2<br>----------------- Start of XMLTV output -----------------<br>2005-11-12 23:00:
03.170 New DB connection, total: 3<br>------------------ End of XMLTV output ------------------<br>Updating icons for sourceid: 1<br>2005-11-12 23:00:03.207 New DB connection, total: 4<br><br>That's all I see, no reason for a failure. My Crontab log shows it is running as the correct user:
<br><br>root@mythtv:/home/mythtv# cat /var/log/cron.1<br>/usr/sbin/crond 2.3.3 dillon, started, log level 8<br>USER mythtv pid 18998 cmd /usr/local/bin/mythfilldatabase <br><br>Is there some environment variable I need to set within the cron job itself?
<br><br>Thanks<br>