Mark Burgess wrote:
Jo, please use the tool provided. There is nothing wrong with these posix standard routines. You might be writing perl regexs or regexs from other non-posix libraries by mistake.

Attach is both the testfile and the cfagent.conf which demonstrates the problem. You can test it yourself.

--
Jo Rhett
Net Consonance ... net philanthropy, open source and other randomness
###
# BEGIN cfagent.conf (Only hard classes in this file )
###

control:
        Inform                  = ( on )
        cfinputs_version = ( 2007100801 )

        site                    = ( svcolo )
        domain                  = ( svcolo.com )
        timezone                = ( PST )
        smtpserver              = ( mail.svcolo.com )                   # used 
by cfexecd
        EmailTo                 = ( [EMAIL PROTECTED] ) # where to mail output
        OutputPrefix    = ( ":" )       # Shorten output lines

        policyhost      = ( arran.svcolo.com )          # Which host/dir is the 
master for configuration roll-outs?
        Repository              = ( /home/jrhett/test ) # Where backup files 
(for copy/tidy) are kept

        # Where extension modules can be found
        workdir                 = ( /home/jrhett/test )

        # Actions to take
        actionsequence  = ( editfiles )
        IfElapsed               = ( 1 )                 # Checks can be 
repeated after 1 mins
                

editfiles:
        { /home/jrhett/test/testfile
                DeleteLinesMatching "^0^I^I1"
        }

# END cfagent.conf
0               1
0       2       *       *       *       root    /usr/sbin/freebsd-update cron
0       *       *       *       *       root    /usr/local/sbin/cfexecd -F
0               2       *       *       *       root    
/usr/sbin/freebsd-update cron
0               *       *       *       *       root    /usr/local/sbin/cfexecd 
-F
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to