LinHES Forums http://forum.linhes.org/ |
|
want to change script scheduling in crontab http://forum.linhes.org/viewtopic.php?f=11&t=13048 |
Page 1 of 1 |
Author: | neutron68 [ Wed Dec 20, 2006 10:39 pm ] |
Post subject: | want to change script scheduling in crontab |
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 |
Author: | Kirk [ Wed Dec 20, 2006 11:16 pm ] |
Post subject: | |
Yep. |
Author: | neutron68 [ Thu Dec 21, 2006 9:15 am ] |
Post subject: | accidental double posting - sorry! |
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.) |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |