↧
Answer by dnsbob for CRON job to run on the last day of the month
Be cautious with "yesterday", "today", "1day" in the 'date' program if running between midnight and 1am, because often those really mean "24 hours" which will be two days when daylight saving time...
View ArticleAnswer by wekt0r for CRON job to run on the last day of the month
In tools like Jenkins, where usually there is no support for L nor tools similar to date, a cool trick might be setting up the timezone correctly. E.g. Pacific/Kiritimati is GMT+14:00, so if you're in...
View ArticleAnswer by Puran Kaurav for CRON job to run on the last day of the month
Use the below code to run cron on the last day of the month in PHP$commands = '30 23 '.date('t').''.date('n').' *';
View Article