View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jan 31, 2004 3:27 pm 
Offline
Joined: Sun Jan 11, 2004 3:01 pm
Posts: 25
Location: germany
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu