Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-14-2006, 03:37 PM   #1
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Rep: Reputation: 15
crontab error on hours

Hi everybody

I want to know if the following line works:
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. It has to be place on 2 lines as follow:

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.

Old 07-15-2006, 10:04 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
It looks fine to me. Is there a problem?

BTW, "00,05,10,15,20,25,30,35,40,45,50,55" can be written as */5
Old 07-16-2006, 12:29 PM   #3
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Original Poster
Rep: Reputation: 15

Thanks blackhole54,

Eventhough, I think the first code example should be wrong because it is on differentes days, Isnt it?. The next day begin at 0. therefore the command 20-05 shouldnt be valid and it has to be resplace by 20-23 and 0-5 on days 1-5 and 2-6.

Does anyone could confirm it?


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
Crontab Error Drunkalot Linux - General 7 07-07-2005 10:34 AM
error running script on crontab haora Linux - Newbie 3 03-11-2005 05:02 PM
Help with crontab log error magyartoth Linux - General 5 12-21-2004 02:05 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 01:35 PM
how many hours does it take ? sapilas Linux - Distributions 2 06-08-2002 11:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 PM.

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