I'd like to schedule a task to be run a number of seconds, minutes, hours, days or weeks before a specified day of a week in a particular month. Examples would be:
- at 8am, 7 days before the last Tuesday of every month
- at 10am, 11 days before the 2nd Saturday of every month
- at 6pm, 3 days before the last Friday of every month
I'm comfortable setting up cron/at to run jobs on specified days, and realise that if I wanted to run on these kinds of schedules, I'm probably going to have to run a script in conjunction with cron.
Does anyone have an examples of how I could go about doing this?