cron L = Last?

Carl Karsten carl at
Mon Nov 20 21:25:17 UTC 2006

How can I tell if the cron that gets installed supports 'L' for 'last'?

according to

  The 'L' character is allowed for the day-of-month and day-of-week fields. This 
character is short-hand for "last", but it has different meaning in each of the 
two fields. For example, the value "L" in the day-of-month field means "the last 
day of the month" - day 31 for January, day 28 for February on non-leap years. 
If used in the day-of-week field by itself, it simply means "7" or "SAT". But if 
used in the day-of-week field after another value, it means "the last xxx day of 
the month" - for example "6L" means "the last friday of the month". When using 
the 'L' option, it is important not to specify lists, or ranges of values, as 
you'll get confusing results.

Carl K

More information about the ubuntu-users mailing list