crontab : last day of the month
Выполнить задание в последний день месяца в crontab:
Linux:
0 30 28-31 * * root [ $(date +\%d -d tomorrow) = 01 ] && command
FreeBSD:
0 30 28-31 * * root [ $(date -v+1d '+%d') = 01 ] && command
Выполнить задание в последний день месяца в crontab:
Linux:
0 30 28-31 * * root [ $(date +\%d -d tomorrow) = 01 ] && command
FreeBSD:
0 30 28-31 * * root [ $(date -v+1d '+%d') = 01 ] && command