Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DefineClasses does not set class in editfiles
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mathias GUG  
View profile  
 More options Nov 26 2004, 4:48 pm
Newsgroups: gnu.cfengine.help
From: Mathias GUG <mathias....@cesart.com>
Date: Fri, 26 Nov 2004 16:48:54 -0500
Local: Fri, Nov 26 2004 4:48 pm
Subject: DefineClasses does not set class in editfiles
Hello,

I'm using cfengine 2.1.11.

I have a problem with DefineClasses in editfiles.

Here is the content of a cfengine file test.cf :

control:

         IfElapsed = ( 0 )
         actionsequence = ( editfiles shellcommands )
         AddInstallable = ( FileEdited )

editfiles:
         { /tmp/dumb
                 AutoCreate
                 Backup "false"
                 AppendIfNoSuchLine "dumb"
                 DefineClasses FileEdited
         }

shellcommands:
         FileEdited::
                 "/bin/echo dumb2 >> /tmp/dumb"

If I run this file, I only get one line in the dumb file.

Running cfagent -d 2 -f ./test.cf gives this error :

...

Actionsequence item shellcommands
FileEdited is excluded!

...

So it seems that the class is not set when the file is edited.

What did I miss ?

Thank you.

Mathias GUG


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Edillon  
View profile  
 More options Nov 27 2004, 6:35 pm
Newsgroups: gnu.cfengine.help
From: Chris Edillon <j...@zot.com>
Date: Sat, 27 Nov 2004 18:35:14 -0500
Local: Sat, Nov 27 2004 6:35 pm
Subject: Re: DefineClasses does not set class in editfiles

  try putting "FileEdited" in quotes.

chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »