I need to find a way to cron a job so that it runs every second wednesday of the month. Is this possible?
feedback
|
migrated from stackoverflow.com Jun 20 '11 at 15:21
This question came from our site for professional and enthusiast programmers.
|
My manpage for crontab (which I sadly can't seem to find online) gives the following example:
Adapting this to your purposes...
| |||
|
feedback
|
|
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:
| |||
feedback
|
|
Based on this answer, you could do:
| |||
|
feedback
|