Amazing. it works like a charm! Thanks. (now why didn't I think of that :-)
Roy On Tue, 28 Mar 2006, Brendan Strejcek wrote: > Date: Tue, 28 Mar 2006 11:55:07 -0600 > From: Brendan Strejcek <[EMAIL PROTECTED]> > To: Roy Marantz <[EMAIL PROTECTED]> > Cc: help-cfengine@cfengine.org > Subject: Re: program structuring > X-Spam-Status: No, hits=0.1 tagged_above=-50.0 required=6.3 tests=TW_QV > X-Spam-Level: > > Roy Marantz wrote: > > > I find that I can > > cat cf.common cf.stuff | cfagent -f - > > but that seems wrong too. > > Why? How about something like this: > > #!/bin/sh > > cat <<EOF | cfagent -qvf - > import: > cf.common > cf.$1 > EOF > > (Untested.) Add a usage message and I bet it would work well. > > Another option would be to add lots of classes that you could turn on > and off with command line options to cfagent (-D, -N) but that seems > more complicated and intrusive to me. > > Best, > Brendan > > -- > Senior System Administrator > The University of Chicago > Department of Computer Science > > http://www.cs.uchicago.edu/people/brendan > http://praksys.blogspot.com/ > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine