LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2006, 09:57 AM   #1
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Rep: Reputation: 15
Question 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
 
Old 07-15-2006, 10:40 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule a task ! L1nuxbug Linux - Networking 4 03-02-2005 08:54 PM
schedule a crontab rupesh_pulikool Solaris / OpenSolaris 7 09-04-2004 10:32 PM
Mandrake 10.1 Schedule is Up colnago Mandriva 0 03-25-2004 02:29 PM
Schedule, AGAIN!! erathomor Linux - General 0 04-11-2002 12:25 PM
HOW TO Schedule erathomor Linux - General 3 04-10-2002 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration