help-cfengine
[Top][All Lists]
Advanced

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

Re: 2.x Solaris ReplaceLinesMatchingField


From: Mark . Burgess
Subject: Re: 2.x Solaris ReplaceLinesMatchingField
Date: Fri, 24 May 2002 13:35:19 +0200 (MET DST)

Denny, sorry for the delay in attending to this. You are right, I have renamed
a buffer in the code at some point of time from ACTIONBUF to EDITBUF, but I
had not properly renamed it everywhere. This is fixed in 2.0.2 (released soon).

Mark


On 19 Apr, Benny Kjellgren wrote:
>> ReplaceLinesMatchingField do *not* work on Solaris 8
>> ReplaceLinesMatchingField works on RedHat 7
> 
> I have done some debuging. More info.
> 
> --- cfagent.conf (snip) ---
> { /usr/local/cfengine/test.ReplaceLinesMatchingField
>    ResetSearch "1"
>    SplitOn ":"
>    ForEachLineIn "/usr/local/cfengine/etc/set.ReplaceLinesMatchingField"
>       ReplaceLinesMatchingField "1"
>    EndLoop
> }
> --- eof ---
> 
> --- test.ReplaceLinesMatchingField ---
> dummy1:dummy1
> F1:Zebra
> dummy2:dummy2
> --- eof ---
> 
> ---set.ReplaceLinesMatchingField
> 
> F1:Xray
> 
> --- eof ---
> 
> --- output from 'cfagent -v' RedHat (working) ---
> Begin editing /usr/local/cfengine/test.ReplaceLinesMatchingField
> resetting pointers to line 1
> Split lines by :
> Starting ForEach loop with 
> /usr/local/cfengine/etc/set.ReplaceLinesMatchingField
> Ignoring empty line which doing ReplaceLinesMatchingField
> Replacing line 2 (key F1)
> Edit:   With (F1:Xray)
> Ignoring empty line which doing ReplaceLinesMatchingField
> Ignoring empty line which doing ReplaceLinesMatchingField
> EndForEachLineInEnd editing /usr/local/cfengine/test.ReplaceLinesMatchingField
> --- eof ---
> 
> --- output from 'cfagent -v' Solaris (*not* working) ---
> Begin editing /usr/local/cfengine/test.ReplaceLinesMatchingField
> resetting pointers to line 1
> Split lines by :
> Starting ForEach loop with 
> /usr/local/cfengine/etc/set.ReplaceLinesMatchingField
> ForEachLineIn skipping blank lineForEachLineIn skipping blank 
> lineForEachLineIn skipping blank lineEndForEachLineInEndForEachLineIn, set 
> current line to: 
> End editing /usr/local/cfengine/test.ReplaceLinesMatchingField
> --- eof ---
> 
> This stuff comes from edittools.c (search for ACTIONBUFF) but I dont know C. 
> Is there someone that has a cfengine 2.0.1 on Solaris where 
> ReplaceLinesMatchingField is working?
> 
> -benny
> 
> _______________________________________________
> 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]