LinHES Forums
http://forums.linhes.org/

Cron Problems with mythfilldatabase
http://forums.linhes.org/viewtopic.php?f=6&t=621
Page 1 of 1

Author:  zardoz [ Sat Jan 31, 2004 3:27 pm ]
Post subject:  Cron Problems with mythfilldatabase

hi all,

maybe a cron-guru is able to help.

i've created following crontab :

root@mythtv:/tmp # more /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
25 6 * * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -e /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.monthly
01 8 * * * root /usr/bin/gettvprog_tr
33 3-7,18-20 * * * root /usr/sbin/ntptimeset -s


where you can see that '/usr/bin/gettvprog_tr' is executed once a day @ 08:01.
(it is a script for fetching xml-data)
running /usr/bin/gettvprog_tr from command line works fine, and takes appr. 30 minutes.

Problem is that if I run it from crontab, it only runs 2 minutes, and the xml-file to be imported by mythfilldatabase is corrupted.

Is there a stupid mistake above ? How could I troubleshoot further ? (with no mail on knoppmyth)

thanks all

tr



fyi, here is gettvprog_tr :

root@mythtv:/tmp # more /usr/bin/gettvprog_tr
#! /bin/bash
export PATH=$PATH:/root/.mythtv
export QTDIR=/usr/lib/qt3
export HOME=/root
/usr/bin/tv_grab_tvtoday_de --config-file /etc/tv_grab_tvtoday_de.conf --output /tmp/xmltr --days 5 --offset 1 ; \
mythfilldatabase --file 1 1 /tmp/xmltr
#rm -rf /tmp/xmltr
touch /tmp/xmltr.log

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/