Forum: Cfengine Help
Subject: Re: Unexpected argument with no preceding option: &&
Author: dfriedman
Link to topic: https://cfengine.com/forum/read.php?3,16855,17004#msg-17004

neilhwatson Wrote:
-------------------------------------------------------
> The run agent command should not permit shell
> constructs such as &&, ; or || for security
> reasons.

Ok, fair enough. But I was using this technique to restore cfengine config if 
an update breaks it (similar to the way Neil describes invoking cf-failsafe.sh 
if cf-serverd fails to start, see 
http://watson-wilson.ca/blog/cf3-tutorial.html). I've been using the same 
technique for cf-execd, too; basically anything that tries to restart after an 
update and fails. And, I've been seeing that same error:


Q: ...n/cf-execd || /": Unexpected argument with no preceding option: ||



Is there a better way (a way that doesn't throw errors) to invoke a script to 
restore cfengine config in case an update breaks it?

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

Reply via email to