<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Thanks.  Since the man page for the file purposely does not document the format, how might one best determine that?  Creating a bunch of entries with the web interface _might_ do, if one carefully exercised each feature; or I suppose there’s the option of digging through the source.  Any other ideas?</div><div><br></div><br><div><div>On Oct 15, 2014, at 10:51 PM, Jeremy Laidman <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 16 October 2014 11:58, Richard Hamilton <span dir="ltr"><<a href="mailto:rlhamil2@gmail.com" target="_blank">rlhamil2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a recommended/supported mechanism to configure (and as needed, update or replace the configuration) of critical systems from the command line?<br></div></blockquote><div><br></div><div>I doubt it.  There's only one binary that updates the critical configuration file, and that's criticaleditor.cgi.</div><div><br></div><div>You might be able to cobble together a script that calls criticaleditor.cgi with the required parameters/environment to simulate a web browser. But it seems a lot of trouble, when you can just update the file.</div><div><br></div><div>As far as I can tell, there's no locking in the web interface, so if two updates happen at around the same time, the second one wins, and the changes in the first save will be lost.  So I don't think you can make it much worse by implementing an extra interface to the file, but if you wanted to avoid concurrency problems like this, you could disable the CGI, and also include some kind of locking code in your own script.</div><div><br></div><div>J</div><div><br></div></div></div></div>
</blockquote></div><br></body></html>