Forum: Cfengine Help
Subject: Re: Possibility of forwarding arguments via command line to cf-agent
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,22232,22241#msg-22241

About the closest I'm aware of for this is the -D option.  This would be the 
equivalent of passing your script a flag as opposed to passing it an argument; 
you'll have to have the pattern(s) pre-defined in the script, or read them from 
a file.

While this would be a crummy decision if cfengine was a scripting language, 
cfengine isn't really a scripting language.  The usage you're describing is 
more of a one-time deal, while cfengine is intended to describe a long-term 
"this is how things should always work".  Since it's a long-term language, 
things like this would be more reasonably stored in a file which allows somewht 
dynamic discovery, or just stored directly in the promises.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to