LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Crontab every 15 days, isn't possible? (https://www.linuxquestions.org/questions/linux-general-1/crontab-every-15-days-isnt-possible-309847/)

deqmacrom 04-05-2005 02:26 AM

Crontab every 15 days, isn't possible?
 
Hi,
after look for in "man 5 crontab" and in "google", I don't find any good solution.
My question is very simple, does anybody know how to run a script with cron, the fridays every two

weeks?
The only solution I know is put in crontab an script to execute every friday, that checks if is

the correct friday or not (depending on the value of a variable, for example) and then, if is the

correct friday, run the original script.
But I want a solution more "beautiful". Is possible to do this with only one line in crontab?

Thank you!

deqmacrom 04-05-2005 03:02 AM

Is a solution

55 23 * * 2/5 /script

?

homey 04-05-2005 08:05 AM

Quote:

Is a solution

55 23 * * 2/5 /script
I think you have that switched around to run every fifth tuesday.
Try this...
55 23 * * 5/2 /script

deqmacrom 04-07-2005 02:31 AM

Thanks,
the correct form is 5/2!

Thank you!


All times are GMT -5. The time now is 03:47 PM.