gnu.cfengine.help
[Top] [All Lists]

ReplaceAll

Subject: ReplaceAll
From: SimonB <barrett.simon@xxxxxxxxx>
Date: Thu, 8 May 2008 04:26:29 -0700 (PDT)
Newsgroups: gnu.cfengine.help

I've seen a number of postings related to ReplaceAll and can't quite
understand how it is supposed to work.

I have the following editfiles statement:

{ /etc/default/autofs
          ReplaceAll '#AUTOMOUNT_TIMEOUT=600' With
'AUTOMOUNT_TIMEOUT=86400'
}


I get the following output:

ntgwpms001# cfagent -qK
BRSCFE: WARNING: Non-convergent edit operation ReplaceAll
[#AUTOMOUNT_TIMEOUT=600] With [AUTOMOUNT_TIMEOUT=86400]
BRSCFE: Line begins [#AUTOMOUNT_TIMEOUT=600]
BRSCFE: Replacement matches search string and will thus replace every
time - edit was not done
BRSCFE: Error editing file /etc/default/autofs

I try other quotes "" but get the same error. Can anyone point out
what I am doing wrong here?

Thanks

I'm running Version 2.2.3.


<Prev in Thread] Current Thread [Next in Thread>
  • ReplaceAll, SimonB <=