Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-15-2006, 09:57 AM
|
#1
|
Member
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90
Rep:
|
Contrab schedule question?
Hi everybody
I want to know if the following line works:
Code:
00,05,10,15,20,25,30,35,40,45,50,55 20-05 * * 1-6 . [something]
But it is wrong crontab should always be ascendant, isnt it?.
It has to be place on 2 lines as follow:
Code:
00,05,10,15,20,25,30,35,40,45,50,55 20-23 * * 1-5 [something]
00,05,10,15,20,25,30,35,40,45,50,55 0-5 * * 2-6 . [something]
It is suppouse to work from monday at 20h and finish at 5h the next day. From Monday to Saturday morning.If Im not wrong the first 2 lines run the crontab also on saturday from 20h to midnight.
Could anyone confirm it?.
Regards
|
|
|
07-15-2006, 10:40 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Odd - yesterday afternoon I read this and couldn't process it. Today it makes perfect sense to me.
It isn't because its ascendant that you need two lines. Its because you have two different sets of days. 12:00 AM (0) after 11:00 PM (23) is not the same day. Therefore something that you want to run at 11 PM THEN at Midnight would be described as two different days.
What you wrote is correct for the time period you describe.
I wonder at the dot (.) in your line though. What is its purpose? You can't source something in cron for later jobs like you can from the command line.
|
|
|
All times are GMT -5. The time now is 10:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|