help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variables in editfiles, setline


From: Rune Mossige
Subject: Re: Variables in editfiles, setline
Date: Mon, 24 Jun 2002 09:43:31 +0200
User-agent: KMail/1.4.1

On Friday 21 June 2002 15:53, Mark.Burgess@iu.hio.no wrote:
I found the problem.....I had ended the setline with "" instead of only 
one ". In other words, a typo.....

> Seems to work for me....maybe $(MINUTE) is not actually defined?
>
> M
>
> On 21 Jun, Rune Mossige wrote:
> > Hello,
> > I want to use a variable in an editfiles section, but using setline
> > apparently does not allow variables...
> >
> > I want to appent a crontab entry, where the minute field is
> > calculated earlier in a module. I only want to append this crontab
> > entry if a similar entry does not exist....I have tried:
> >
> > editfiles:
> >   { /etc/crontab
> >       SetLine "$(MINUTE) 4,5,8,9,12,13,16,17 * * * root
> > /gecoapp/share/rsync_computenodes""
> >       AppendIfNoLineMatching ".*rsync_computenodes.*"
> >     }
> >
> > but then cfengine complains with:
> > Wildcards cannot be used in this context:
> > cfengine:GST0H5::Execution terminated after parsing due to errors
> > in program
> >
> > How can I get around this? I am using 2.0.1.
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://mail.gnu.org/mailman/listinfo/help-cfengine
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~ Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no Fax :
> +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]