running a cron at every month end


If tomorrow's date is 01, condition will be true and it will execute subsequent command.
55 23 * * * [ `date -d tomorrow +\%d` -eq '01' ] && /path/to/script


No comments: