I need to find a way to cron a job so that it runs every second wednesday of the month. Is this possible?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
migrated from stackoverflow.com Jun 20 '11 at 15:21
|
My manpage for crontab (which I sadly can't seem to find online) gives the following example:
Adapting this to your purposes...
|
|||
|
|
It's not possible using cron on its own, but you could call a script once a week that does the test: In crontab, run second_wed.sh at 12.00 every Wednesday:
In second_wed.sh:
|
|||
|
|
Based on this answer, you could do:
|
|||
|
|