[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Optimizing large copies - actionsequence
From: |
Ed Brown |
Subject: |
RE: Optimizing large copies - actionsequence |
Date: |
Tue, 04 Oct 2005 17:08:18 -0600 |
Use a method or module...
On Tue, 2005-10-04 at 16:59, Martin, Jason H wrote:
> The problem is that in order to use rsync to download the repository
> (see the earlier part of this thread for the overall problem), I need a
> few specific shellcommands to
> run before the copy action and the rest of the shellcommands. The set of
> 'prep' shellcommands is much much smaller than the set of 'later'
> shellcommands, and it is easier to manage tagging the smaller set then
> the larger set.
>
> Thank you,
> -Jason Martin
>
> > -----Original Message-----
> > From: Ed Brown [mailto:ebrown@lanl.gov]
> > Sent: Tuesday, October 04, 2005 3:55 PM
> > To: Martin, Jason H
> > Cc: help-cfengine@gnu.org
> > Subject: RE: Optimizing large copies - actionsequence
> >
> >
> > On Tue, 2005-10-04 at 15:35, Martin, Jason H wrote:
> >
> > > How would one set up the actionsequence for this? The
> > manual indicates
> > > that I'd put in something like: (
> > > shellcommands.prepare
> > > copy
> > > shellcommands
> >
> > This doesn't work at all in practice (having an unqualified
> > action AFTER a qualified action in the sequence; see previous
> > threads about actionsequence).
> >
> > But you might get some mileage out of:
> >
> > actionsequence = ( shellcommands copy shellcommands.later )
> >
> > Now you only have to qualify the 'later' shellcommands.
> >
> > -Ed
> >
> >