LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   crontab error on hours (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-error-on-hours-464068/)

richikiki 07-14-2006 02:37 PM

crontab error on hours
 
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. 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.

Thanks

blackhole54 07-15-2006 09:04 AM

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

richikiki 07-16-2006 11:29 AM

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?
Regards ;)


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