Mailing List Archive

cron'ing mythfilldatabase
I've been trying to cron mythfilldatabase and it keeps failing, telling me
that the qt db module isn't available. I've added 'set QTDIR=/usr/lib/qt'
and 'export $QTDIR' at the top of the sh script, and the script runs fine
under my user account.

Any ideas?

Randy
RE: cron'ing mythfilldatabase [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following works on Mandrake 9.0:

File "mythcrontab":
# The following will run the mythfilldatabase shell script at 18:00
every day. Format is
# minutes hour day_of_month month day_of_week
# In the case of mythfilldatabase, we want it to run at 1800 daily.
# man 5 crontab for more information
# Need to use a shell script because the QTDIR environment variable
isn't
# being honored by crontab?
0 18 * * * /bin/bash
$HOME/mythtv/MC/programs/mythfilldatabase/mythfilldatabasecron

% crontab mythcrontab

File programs/mythfilldatabase/mythfilldatabasecron:
#!/bin/bash
export QTDIR=/usr/lib/qt3
/usr/local/bin/mythfilldatabase

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPdBqwfc1NpCTlP0JEQJC8gCfd2+iazYJQLCqWXkVZjDLi6ZG0E0AoNfv
YQ0RI6JvwOKt0p1wZgvYlhkI
=T6QU
-----END PGP SIGNATURE-----