I'd like to know if L
is one of the allowed special characters on Debian's cron implementation? I'm trying to set up a cron to run on the last day of every month.
From the cron entry on wikipedia:
'L' stands for "last". When used in the day-of-week field, it allows
you to specify constructs such as "the last Friday" ("5L") of a given
month. In the day-of-month field, it specifies the last day of the
month.Note: L is a non-standard character and exists only in some cron
implementations (Quartz java scheduler)
If not, how would you go about setting a cron to run on the last day of every month? Would you recommend 3 different entries like this solution on stackoverflow?
Best Answer
Cron entries on Debian are described in the crontab man page (
man 5 crontab
). Debian uses Vixie's cron, and his man page says:So working along those lines: