help-cfengine
[Top][All Lists]
Advanced

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

Re: RunScript and String continuation question


From: Mark . Burgess
Subject: Re: RunScript and String continuation question
Date: Mon, 22 Jul 2002 12:17:56 +0200 (MET DST)

On 22 Jul, Paul Company wrote:
> 
> Question #1:
> 
> How do you STOP RunScript from
> "append[ing] the script with two arguments:
> the name of the file which is being edited and
> the system hard class (e.g. sun4, ultrix etc.)
> of the system executing the script."
> http://www.cfengine.org/docs/cfengine-Reference.html#editfiles
> 

Put it in a wrapper that strips them off

 
> Question #2:
> 
> How do you define a variable with a string that
> spans multiple lines?
> 
> Example:
> myvariable = ( " hello everybody
>                    this is the second line
>                    3rd line
>                    4th line with alot of text bla bla bla bla bla etc.
>                " )
> 
> It's much more readable this way - instead of
> myvariable = (" hello everybody$(n)   this is the second line$(n)   3rd
> line$(n)   4th line with alot of text bla bla bla bla bla etc.$(n)" )
> 

$(cr) / $(n) or something?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]