ReplaceAll
  Home FAQ Contact Sign in
gnu.cfengine.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.cfengine.help Profile…
 Up
ReplaceAll         


Author: SimonB
Date: May 8, 2008 04:26

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.
no comments