$quoted_author = "Martin Barry"; > b) schedule with CRON every day from 15th to 21st but exit immediately if it's not a Sunday.
That's exactly what one would achieve by using the crontab entry suggest in the first email of this thread (2nd zero=Sunday): 0 4 15-21 * 0 /path/to/my/command Rafael On Tue, Dec 29, 2009 at 11:10 AM, Martin Barry <[email protected]> wrote: > $quoted_author = "Rafael Carneiro" ; > > > > Not quite sure what you mean by that. > > [man 5 crontab] > Note: The day of a command's execution can be specified by two fields - > day of month, and day of week. If both fields are restricted (ie, aren't > *), the command will be run when either field matches the current time. > For > example, ``30 4 1,15 * 5'' would cause a command to be run at 4:30 am on > the > 1st and 15th of each month, plus every Friday. > [/man 5 crontab] > > > > How else would I tell cron to run every 3rd sunday of the month? > > You need to push some of the scheduling smarts to the command or script. > > Either: > a) schedule with CRON every Sunday but exit immediately if the date is not > within the 15th to 21st. > > b) schedule with CRON every day from 15th to 21st but exit immediately if > it's not a Sunday. > > cheers > Marty > _______________________________________________ > Opsview-users mailing list > [email protected] > http://lists.opsview.org/lists/listinfo/opsview-users >
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
