Re: cron: nth weekday of month?

2001-05-01 Thread will trillich
On Fri, Apr 27, 2001 at 09:09:12AM -0500, b3 wrote: On Thu, Apr 26, 2001 at 07:19:11PM -0500, will trillich wrote: what if we propose something like #min hr monthday month weekday cmd 0 1 1 1 *echo Jan 1 1:00am #and for the new concepts, which could

Re: cron: nth weekday of month?

2001-04-30 Thread will trillich
On Fri, Apr 27, 2001 at 09:09:12AM -0500, b3 wrote: On Thu, Apr 26, 2001 at 07:19:11PM -0500, will trillich wrote: what if we propose something like #min hr monthday month weekday cmd 0 1 1 1 *echo Jan 1 1:00am #and for the new concepts, which could

Re: cron: nth weekday of month?

2001-04-27 Thread Dan Christensen
Does anyone have any clever solutions to the following problem of a similar nature: I want to run a job at 28 day intervals, i.e. on every fourth Sunday. Dan

Re: cron: nth weekday of month?

2001-04-27 Thread Karsten M. Self
on Fri, Apr 27, 2001 at 01:20:00AM -0400, Dan Christensen ([EMAIL PROTECTED]) wrote: Does anyone have any clever solutions to the following problem of a similar nature: I want to run a job at 28 day intervals, i.e. on every fourth Sunday. You can apply my method directly to this. --

Re: cron: nth weekday of month?

2001-04-27 Thread b3
On Thu, Apr 26, 2001 at 07:19:11PM -0500, will trillich wrote: what if we propose something like #min hr monthday month weekday cmd 0 1 1 1 *echo Jan 1 1:00am #and for the new concepts, which could use tweaking: 0 1-1 * *

Re: cron: nth weekday of month?

2001-04-27 Thread Dave Sherohman
On Fri, Apr 27, 2001 at 01:20:00AM -0400, Dan Christensen wrote: Does anyone have any clever solutions to the following problem of a similar nature: I want to run a job at 28 day intervals, i.e. on every fourth Sunday. Not terribly clever, but just end your script with echo '/path/to/script'

Re: cron: nth weekday of month?

2001-04-27 Thread Dave Sherohman
On Thu, Apr 26, 2001 at 12:32:46PM -0700, Karsten M. Self wrote: Another missing specification: does anyone have a good last weekday of month recipie? 'Last weekday of the month' is equivalent to 'Monday - Thursday where tomorrow is next month or Friday where 3 days from now is next month'.

Re: cron: nth weekday of month?

2001-04-27 Thread Karsten M. Self
on Fri, Apr 27, 2001 at 10:36:57AM -0500, Dave Sherohman ([EMAIL PROTECTED]) wrote: On Thu, Apr 26, 2001 at 12:32:46PM -0700, Karsten M. Self wrote: Another missing specification: does anyone have a good last weekday of month recipie? 'Last weekday of the month' is equivalent to 'Monday

Re: cron: nth weekday of month?

2001-04-27 Thread Karsten M. Self
on Fri, Apr 27, 2001 at 10:18:58AM -0500, Dave Sherohman ([EMAIL PROTECTED]) wrote: On Fri, Apr 27, 2001 at 01:20:00AM -0400, Dan Christensen wrote: Does anyone have any clever solutions to the following problem of a similar nature: I want to run a job at 28 day intervals, i.e. on every

Re: cron: nth weekday of month?

2001-04-26 Thread Rob Mahurin
On Wed, Apr 25, 2001 at 03:58:28AM -0700, Karsten M. Self wrote: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? My understanding is that I can specify day of month, or weekday, but if

Re: cron: nth weekday of month?

2001-04-26 Thread Dave Sherohman
On Wed, Apr 25, 2001 at 03:32:43PM -0700, Karsten M. Self wrote: Hence, my crontab recipie to execute a job on the first sunday of the month is: 1 1 1 * * echo 'command -args' | at 1:35 sunday snip For tasks scheduled for other weeks of the month, you'd select: WeekDay

Re: cron: nth weekday of month?

2001-04-26 Thread Karsten M. Self
on Thu, Apr 26, 2001 at 09:09:25AM -0500, Dave Sherohman ([EMAIL PROTECTED]) wrote: On Wed, Apr 25, 2001 at 03:32:43PM -0700, Karsten M. Self wrote: Hence, my crontab recipie to execute a job on the first sunday of the month is: 1 1 1 * * echo 'command -args' | at 1:35 sunday snip

Re: cron: nth weekday of month?

2001-04-26 Thread Karsten M. Self
on Thu, Apr 26, 2001 at 07:23:51AM -0400, Rob Mahurin ([EMAIL PROTECTED]) wrote: On Wed, Apr 25, 2001 at 03:58:28AM -0700, Karsten M. Self wrote: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with

Re: cron: nth weekday of month?

2001-04-26 Thread will trillich
On Thu, Apr 26, 2001 at 12:32:46PM -0700, Karsten M. Self wrote: To run on the fifth Sunday in a month, only if it exists: 0 1 29 1,3-12 * echo 'command -args' | at 1:34 sunday To run on the fifth Sunday in a month, *or* the following Sunday if it does not: 0 1 29 * *

cron: nth weekday of month?

2001-04-25 Thread Karsten M. Self
I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? My understanding is that I can specify day of month, or weekday, but if both are specified the condition is treated as an OR (if first week of

RE: cron: nth weekday of month?

2001-04-25 Thread Lewis, James M.
-Original Message- From: Karsten M. Self [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 6:58 AM To: debian-user Subject: cron: nth weekday of month? I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month

Re: cron: nth weekday of month?

2001-04-25 Thread Carl Johnson
Karsten M. Self kmself@ix.netcom.com writes: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? I haven't any better ideas about cron, but you may want to look into using remind. It is in a

Re: cron: nth weekday of month?

2001-04-25 Thread Alan Shutko
Karsten M. Self kmself@ix.netcom.com writes: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? http://www.netsys.com/sunmgr/1996-12/msg00142.html I don't think there's any way to do it with

Re: cron: nth weekday of month?

2001-04-25 Thread Bud Rogers
Karsten M. Self kmself@ix.netcom.com writes: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? Could you wrap the job in a shell scrip? Run the script from cron every Sunday. Have the script

Re: cron: nth weekday of month?

2001-04-25 Thread Alvin Oga
hi ya you can run the script 7 times ( 7 entries in crontab ) and if its not sunday, the script can exit. at least no wrapper is needed... and there's probably gazaillion other ways to skin this cat c ya alvin On Wed, 25 Apr 2001, Bud Rogers wrote: Karsten M. Self

Re: cron: nth weekday of month?

2001-04-25 Thread Karsten M. Self
on Wed, Apr 25, 2001 at 04:53:46PM -0500, Bud Rogers ([EMAIL PROTECTED]) wrote: Karsten M. Self kmself@ix.netcom.com writes: I've got a job I'd like to run once a month, on a set day of the week, say, the first Sunday of the month. Suggestions as to how to do this with cron? Could you