Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Crontab: Do something exactly every 3 week on Tuesday?

3 views
Skip to first unread message

Wolfgang Meister

unread,
Jun 15, 2008, 2:37:06 PM6/15/08
to
How do I specify in a crontab/cronfile that a certain command should be done exactly every 3 week (on Tuesday) ?

* * */21 * 2 command

is not what I want because the command is perfomed on every 21st of each month read. approx. every 4 weeks.

How else can I achieve this?

Wolfgang

Adam Funk

unread,
Jun 21, 2008, 9:10:08 AM6/21/08
to

As far as I know, the only way to do this is to set the crontab to run
meta_command.sh every Thursday, where meta_command.sh is a wrapper
script that works out whether it's now the third Thursday and either
runs "command" or exits.


--
I heard that Hans Christian Andersen lifted the title for "The Little
Mermaid" off a Red Lobster Menu. [Bucky Katt]

0 new messages