Re: [OT] Cron and day of the week

2009-03-30 Thread Matus UHLAR - fantomas
> On Sun March 29 2009 06:25:41 Matus UHLAR - fantomas wrote: > > No, I think that _all_ fields have to match an entry to be executed. > > >From "man 5 crontab": On 29.03.09 07:06, Mike Bird wrote: > Note: The day of a command’s execution can be specified by two fields — > day of month, an

Re: [OT] Cron and day of the week

2009-03-29 Thread Mike Bird
On Sun March 29 2009 06:25:41 Matus UHLAR - fantomas wrote: > No, I think that _all_ fields have to match an entry to be executed. From "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 (i.

Re: [OT] Cron and day of the week

2009-03-29 Thread Matus UHLAR - fantomas
> > T o n g wrote: > >> I know we can put day of the week info as cron schedules, but how can I > >> define: > >> > >> - first Monday of the month > >> - second Monday of the month > >> - last Monday of the month > On Wednesday, 25.03.2009 at 16:34 +, Avi Greenbury wrote: > > The first Monday

Re: [OT] Cron and day of the week

2009-03-25 Thread Tapani Tarvainen
On Wed, Mar 25, 2009 at 04:25:45PM +, T o n g (mlist4sunt...@yahoo.com) wrote: > I know we can put day of the week info as cron schedules, but how can I > define: Cron syntax can't handle these, but with an extra test in crontab they can be done. Assuming you want to run "myprog" at noon:

Re: [OT] Cron and day of the week

2009-03-25 Thread Daryl Styrk
T o n g wrote: Hi, I know we can put day of the week info as cron schedules, but how can I define: - first Monday of the month - second Monday of the month - last Monday of the month Thanks! This has some nice examples. http://www.adminschoice.com/docs/crontab.htm -- To UNSUBSCRIBE, em

Re: [OT] Cron and day of the week

2009-03-25 Thread Dave Ewart
On Wednesday, 25.03.2009 at 16:34 +, Avi Greenbury wrote: > T o n g wrote: >> I know we can put day of the week info as cron schedules, but how can I >> define: >> >> - first Monday of the month >> - second Monday of the month >> - last Monday of the month > > The first Monday of the month wi

Re: [OT] Cron and day of the week

2009-03-25 Thread Dave Ewart
On Wednesday, 25.03.2009 at 16:25 +, T o n g wrote: > I know we can put day of the week info as cron schedules, but how can I > define: None of these are simple cron entries. I work with similar rules as follows: > - first Monday of the month Run the cron job on the 1st to 7th of the mont

Re: [OT] Cron and day of the week

2009-03-25 Thread Avi Greenbury
T o n g wrote: I know we can put day of the week info as cron schedules, but how can I define: - first Monday of the month - second Monday of the month - last Monday of the month The first Monday of the month will be the only Monday within the first seven days of the month. 0 0 1-7 * 1 com

[OT] Cron and day of the week

2009-03-25 Thread T o n g
Hi, I know we can put day of the week info as cron schedules, but how can I define: - first Monday of the month - second Monday of the month - last Monday of the month Thanks! -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/