help-cfengine
[Top][All Lists]
Advanced

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

problems with filters - info and patch


From: Harry Hoffman
Subject: problems with filters - info and patch
Date: Tue, 9 Aug 2005 18:46:31 -0400 (EDT)

Hi all,

A while back I had written about problems I was having getting the Filters
to work.
http://groups-beta.google.com/group/gnu.cfengine.help/browse_thread/thread/dfd22a8102ef9181/7f82ee7cbb76b11c?lnk=st&q=Problems+with+Filter+cfengine+hhoffman&rnum=1&hl=en#7f82ee7cbb76b11c

Tom Mezzatesta was kind enough to point out to me that:
   ExecRegex: "/usr/bin/file (.*executable.*)"
should actually be
   ExecRegex: "/usr/bin/file ($this) (.*executable.*)"

It would seem that the example in the documentation is incorrect so I've
included a patch to the current svn trunk.

I've also included in the body of the message in case attachments are
discarded:

Index: cfengine-Reference.texinfo
===================================================================
--- cfengine-Reference.texinfo  (revision 118)
+++ cfengine-Reference.texinfo  (working copy)
@@ -7028,7 +7028,7 @@
   FromSize:  "10000"                   # File size interval
   ToSize:    "10mb"

-  ExecRegex: "/usr/bin/file(.*ascii.*)"# Result from "files" command
+  ExecRegex: "/usr/bin/file $(this) (.*ascii.*)"# Result from "files"
command

   Type:      "dir|link"                #
reg|link|dir|socket|fifo|door|char|block


HTH,
Harry

Attachment: cfengine-Reference.texinfo.svndiff
Description: svn diff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]