View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Feb 28, 2004 2:34 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Is there a way I can select when (say at 6 PM each night) the /etc/cron.daily/mythtv-backend will run?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 5:05 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
well you can't change just mythtv-backend, through the system cron jobs, but you can change all daily cron jobs to run at a different time by editing /etc/crontab (you have to restart cron after editing it.) or you could remove it from cron.daily and setup a user cron job at whatever time you want if you need to just change that one job.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 29, 2004 7:27 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Hey cool... when I read the man page for crontab it cautioned against editing /etc/crontab manually. Did it anyway and now everything is cool. Thanks for the help Xsecrets.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 29, 2004 11:59 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
yes well the reason you don't want to edit crontab directly is that cron will not see the changes untill the next time it is restarted either by a reboot, or manually restarted with the init script.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 6:02 am 
Offline
Joined: Wed Feb 11, 2004 7:36 am
Posts: 15
Location: Germany, Pforzheim
that's why there is a command crontab -e.

_________________
cu,
dev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 9:55 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
yes I know of that command for the user crontabs, but how do you use it to edit the system crontab? I'm not saying you can't I just don't know how.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 11:25 am 
Offline
Joined: Wed Feb 11, 2004 7:36 am
Posts: 15
Location: Germany, Pforzheim
sorry, my fault. I was on users crontab.
Hmm, can't even hide behind it being to early. :-(

I would propose to move the mythbackend cron out of
the /etc/cron.d and open a mythtv user crontab.

Perhaps even in general, but at least when changing the
execution time.

And a touch -m /etc/crontab should be enough to force cron
to reload modified cron.d parts.

_________________
cu,
dev


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 68 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