No such thing as a small change | |
PerlMonks |
Re: cron: every nth weekby runrig (Abbot) |
on Jan 01, 2002 at 02:57 UTC ( [id://135452]=note: print w/replies, xml ) | Need Help?? |
If you're scheduling the script to run every Monday
(and only on Monday, or whatever day you're after), then can just see if its the nth week of the month.
Here's a version
that doesn't use modules (notice there's no real difference between bad input and a day that's not the nth week):
In Section
Cool Uses for Perl
|
|