Forum: Cfengine Help
Subject: Re: regex help
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,21705,21719#msg-21719
neilhwatson Wrote:
---
> To make matters more interesting cfengine.com's
> regex tester says the regex is OK but
Forum: Cfengine Help
Subject: Re: regex help
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21705,21718#msg-21718
To make matters more interesting cfengine.com's regex tester says the regex is
OK but for edit files and processes it shows 'undefined error'.
_
Forum: Cfengine Help
Subject: Re: regex help
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21705,21717#msg-21717
That hurts my brain. I get an expected match with PCREgrep now. Still Cf does
not delete the line. Strange.
_
Forum: Cfengine Help
Subject: Re: regex help
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,21705,21716#msg-21716
neilhwatson Wrote:
---
> I'm very confused now. PCREgrep matches both
> lines.
You're right.
I was testing wi
Forum: Cfengine Help
Subject: Re: regex help
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21705,21715#msg-21715
I'm very confused now. PCREgrep matches both lines.
# /var/cfengine/bin/pcregrep '(:?\S+\s+){5}(?&1 > /dev/null)'
/home/nwatson/crontab
01 3 1 * * /usr/scri
On Fri, Apr 29, 2011 at 02:36:41PM -0400, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Cfengine Help: regex help
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,21710,21712#msg-21712
>
>Jesse Becker Wrote:
>-
Forum: Cfengine Help
Subject: Re: regex help
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,21705,21713#msg-21713
The negative lookbehind is zero-width, so you need the rest of the pattern
around it to match a complete line if the zero-width piece was removed. That's
the har
Forum: Cfengine Help
Subject: Re: Cfengine Help: regex help
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21710,21712#msg-21712
Jesse Becker Wrote:
---
> >This is the regext to remove the unwanted lines
> >
> >(?&1
> >
Forum: Cfengine Help
Subject: Re: hp-ux SD package management
Author: santa
Link to topic: https://cfengine.com/forum/read.php?3,21261,21711#msg-21711
I've thought at this problem . On HP-UX we must be able to install bundles or
products (to keep it simple).
We may just use swlist -v instead of s
On Fri, Apr 29, 2011 at 02:05:31PM -0400, no-re...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: regex help
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,21705,21705#msg-21705
>
>I have a line that I want to insert into a file. I also want to remove any
>other p
Forum: Cfengine Help
Subject: Re: What does --bootstrap do?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21707,21709#msg-21709
cf3 reference says:
"Run cf-agent --bootstrap as the root or privileged user. This will install
cfengine 3 in place of cfengine 2, integrate y
Forum: Cfengine Help
Subject: What does --bootstrap do?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,21707,21707#msg-21707
I'm looking at the cf-agent output (in the community edition), and there's both
--bootstrap and --policy-server options. The --help description doesn't
Forum: Cfengine Help
Subject: Re: Newbie Needs help with regular expression
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21706,21708#msg-21708
Try this.
bundle agent foo {
files:
"/tmp/yourfile"
edit_line => search_replace(
"^ifconfig_lm
Forum: Cfengine Help
Subject: regex help
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21705,21705#msg-21705
I have a line that I want to insert into a file. I also want to remove any
other permutations of that line from the file. Appending is easy deleting
without d
Hello,
I am new to Cfengine and am having trouble with regular expressions. For
example, I want to modify a line in a file from,
ifconfig_lm2="up"
to
ifconfig_lm2="up mtu 9000"
I actually tried just deleting and inserting a new line, but the line ends
up at the bottom of the file, and that's
Forum: Cfengine Help
Subject: Re: Why is insert_lines not convergant?
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,21682,21704#msg-21704
For some reason, and I'm not really sure why, this seems to be a workaround to
this issue
(linux|sunos_5_10)
Forum: Cfengine Help
Subject: Re: MD5 key naming instead of IP's/hostnames
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,21679,21703#msg-21703
Check out cf-key --show-hosts
___
Help-cfengine mailing list
Help-cfengine@cfengine
17 matches
Mail list logo