View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Dec 20, 2006 10:39 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
I want to change the scheduling of the "pretty" script from 2 times per hour to one time per day. (I'm talking about the mythrename.pl script which creates the contents of the /myth/pretty directory.)

My stock crontab file looks like this:
Code:
# /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
 17 *    * * *   root    run-parts --report /etc/cron.hourly
 25 6    * * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
 47 6    * * 7   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
 52 6    1 * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
 #

 # run "pretty" script at 5 and 35 after every hour
 5,35 * * * *    root    nice -n 19 /usr/local/bin/mythrename.pl --link /myth/pretty

If I want it to run only 1 time per day (at 5 minutes after midnight for example, is this how my new crontab file would look?
Code:
# /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
 17 *    * * *   root    run-parts --report /etc/cron.hourly
 25 6    * * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
 47 6    * * 7   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
 52 6    1 * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
 #

 # run "pretty" script at 5 and 35 after every hour
 5 0    * * *    root    nice -n 19 /usr/local/bin/mythrename.pl --link /myth/pretty

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 11:16 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Yep.


Top
 Profile  
 
PostPosted: Thu Dec 21, 2006 9:15 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
This thread was accidently created during the editing of a thread. It is essentially a duplicate of the other post (which is essentially the same).

Sorry about this.

Cecil, feel free to zap this thread, since it was a mistake.

(I used the back button in my broswer to go back and edit the title of the thread and it created a new thread.)

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu