View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 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.

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:14 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Nope, the other post was correct.
Code:
 5 0 * * *    root    nice -n 19 /usr/local/bin/mythrename.pl --link /myth/pretty


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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