LinHES Forums http://forum.linhes.org/ |
|
how to change pretty scritp scheduling in crontab? http://forum.linhes.org/viewtopic.php?f=11&t=13047 |
Page 1 of 1 |
Author: | neutron68 [ Wed Dec 20, 2006 10:39 pm ] |
Post subject: | how to change pretty scritp scheduling in crontab? |
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 |
Author: | Kirk [ Wed Dec 20, 2006 11:14 pm ] |
Post subject: | |
Nope, the other post was correct. Code: 5 0 * * * root nice -n 19 /usr/local/bin/mythrename.pl --link /myth/pretty
|
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |