help-cfengine
[Top][All Lists]
Advanced

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

Re: Getting $(allclasses) into a shellcommand


From: Mark . Burgess
Subject: Re: Getting $(allclasses) into a shellcommand
Date: Mon, 19 Jul 2004 21:42:01 +0200 (MEST)

Cfengine could easily cache the classes in an easily readble file format
M

On 19 Jul, Chip Seraphine wrote:
> The problem is doing the writing.  Unless I do something expensive involving 
> an iterator, I can't get the class list into the file at all (even with 
> editfiles).
> 
> On Monday 19 July 2004 14:09, Ted Zlatanov wrote:
>> How about writing the list of classes into $cfinputs/classes.$$ where
>> $$ is the PID of the cfagent run?  This can be passed as a variable
>> to spawned processes thereafter (CFCLASSFILE, for example).  It's a
>> temporary file but harmless if it's left around.
>> 
>> I can think of other solutions involving IPC but those are uglier by
>> far.
>> 
>> Ted
>> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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