how do you schedule a job to run at the last day of the in a single crontab line
for example if I put a crontab entry of
0 0 31 * * /path_of_my_script
the above will only run if the last day of the months is 31, what happens if the last day of the month is 28 or 30.
if I put a crontab entry of
0 0 28,30,31 * * /path_of_my_script
this will run on all three days 28, 30, and 31
But I only want my script to run on the last day of the month
Is they a way to have a cron job run at the last day of the month regardless if the last day of the month is 28, 30, or 31?
A user here came up a simple solution. She puts in 12 entries, one for each month of the year. I pointed out that the February entry will be wrong in leap years. She just shrugged and said she reviews her cron jobs in late December anyway.