Forum: CFEngine Help
Subject: Re: Edit selected files
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,17747,24272#msg-24272
Thanks, but I gave up on it and did two things: hardcode the few files I needed
(which is very inflexible as they might change behind my back whenever
Forum: CFEngine Help
Subject: Re: Edit selected files
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,17747,24267#msg-24267
I also couldn't get file selection rules to work using the "/path/to/*/*.pl"
files promises. So what I ended up doing is writing a module using find to
Forum: CFEngine Help
Subject: Re: Edit selected files
Author: ariswin
Link to topic: https://cfengine.com/forum/read.php?3,17747,24266#msg-24266
I also have the same problem about the codes, still trying to figure it out
___
Help-cfengine mailing list
H
Forum: CFEngine Help
Subject: Re: Edit selected files
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,17747,24236#msg-24236
Hi,
Sorry for reviving an old thread, but i'm hitting a very similar problem. I
could solve it with the examples listed in the bug report 190, but
Forum: Cfengine Help
Subject: Re: RE: Cfengine Help: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17871,17923#msg-17923
I found that using the usemodule function rather than invoking the module as a
command eliminated the unwanted messages
Forum: Cfengine Help
Subject: Re: RE: Cfengine Help: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17871,17879#msg-17879
For me no_output => "true" only suppresses the "M" message. The other two are
still logged:
-> Execut
612-419-9362
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com
Sent: Monday, August 09, 2010 9:46 AM
To: help-cfengine@cfengine.org
Subject: Cfengine Help: Re: Edit selected files
Forum: Cfengine H
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17870#msg-17870
For anyone interested the bug report I opened (190) was closed with no
resolution. It was stated that allowing a file_select with edit_line is "too
b
Hi Beto
I believe you are correct - file_select only has meaning for copy_from
promises. Actually, more accurately it works for any promises which
support depth_search. It turns out that edit_line in *not* compatible
with depth_search, you will get these errors if you try:
!! Recursive depth_searc
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17786#msg-17786
Michael,
I noticed your feature request and I think it would address my requirement also.
It is interesting that, in your case, the file_select does cause
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17747,17780#msg-17780
Beto,
it's not the issue with splitstring, it's variables expansion limitation. The
Cfengine only runs each promise 3 times, so the evaluation
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17776#msg-17776
Seva,
Thanks for your response.
I already reported a bug for the file_select issue (000190) and I'm trying to
use the find command with splitstring as a
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17747,17773#msg-17773
Beto,
I suggest you to file the bug report about file_select being ignored while is
being used together with edit_line. The initial approach is
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17772#msg-17772
Hey folks,
Having no success whatsoever with the previous approaches in this thread I
tried using a find command to select the "dot" files for editing. S
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17759#msg-17759
Hi Seva,
Unfortunately your suggestion produces the exact result, including all the
error/warning messages, I described in my original post.
As I stated
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17747,17758#msg-17758
Beto,
If you don't need to dive into subdirs, it can be much simpler. You need to
change your files promise as follows:
files:
"$(Home
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,17747,17757#msg-17757
So the problem would be cfengine displays too many warning messages or there is
a bug in file_types as you really specified file_types => { "plain" };
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17756#msg-17756
No matter how I code the edit_line promise and the file_select, and I have
tried every variation I can think of, one thing is constant: the file_select
ap
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17755#msg-17755
Seva,
Your suggested change doesn't work either and only produces the following for
every home directory without changing any files (I believe you meant t
Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17747,17754#msg-17754
Beto,
your approach to file select looks bit strange. It should be like follows:
files:
any::
"$(HomeDir[$(HomeUsr)][5])"
20 matches
Mail list logo