LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2005, 02:26 AM   #1
deqmacrom
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Rep: Reputation: 0
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!
 
Old 04-05-2005, 03:02 AM   #2
deqmacrom
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Is a solution

55 23 * * 2/5 /script

?
 
Old 04-05-2005, 08:05 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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
 
Old 04-07-2005, 02:31 AM   #4
deqmacrom
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks,
the correct form is 5/2!

Thank you!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up took 3 days Diagmato Linux - Hardware 9 12-04-2005 07:21 AM
two days in and still no booting please help lerningkurv Linux - Newbie 2 05-15-2005 06:12 PM
having one of THOSE DAYS ! qwijibow General 3 11-10-2004 04:13 AM
once in how often? twice in two days!? andzerger Linux - Security 1 02-20-2004 05:45 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 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