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: Ted Zlatanov
Subject: Re: Getting $(allclasses) into a shellcommand
Date: 19 Jul 2004 15:09:25 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

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




reply via email to

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