For a safer method in a crontab based on @Indie solution (use absolute path to date
+ $()
does not works on all crontab systems):
0 23 28-31 * * [ `/bin/date -d +1day +\%d` -eq 1 ] && myscript.sh
For a safer method in a crontab based on @Indie solution (use absolute path to date
+ $()
does not works on all crontab systems):
0 23 28-31 * * [ `/bin/date -d +1day +\%d` -eq 1 ] && myscript.sh