cron last day of every month
How would you go about writing a crontab entry for a job that would run at 11:59pm on the last day of every month? It can't be static since the days in a month varies from 28 to 31.
Also, how can you deal with leap years? |
|
Digging around on the web, this is as far as I get. I'm not entirely sure if this will handle the leap year. Would appreciate if you find out to let me know.
Code:
#All months with 31 days |
All times are GMT -5. The time now is 08:30 AM. |