2 Replies Latest reply on Sep 27, 2011 10:13 AM by Mike Langhorst

    Dealing with config entries in shell scripts and other "mixed" format files

      I have a couple files that have issues with BladeLogic.

       

      1)  Shell script with name=value variables in a top section that I need to modify.   If I set as a name=value for it as a config file, then the formatting of the script portion is lost.  This doesn't sound like a really obscure use case, what are others doing for this?

       

      2) A mostly xml formatted file similar to:

      <server>

      <mbean> 

      <attribute name="Properties">

                      WebAppSec.LDAPurl=ldap://ldap-test.example.com:389

                      WebAppSec.userSearchLocation=ou=People,o=example,c=com

                      WebAppSec.invalidationTimeSec=14400

                      WebAppSec.contextFactoryType=com.sun.jndi.ldap.LdapCtxFactory

          </attribute>

      </mbean>

      </server>

       

      I need to modify the WebAppSec.LDAPurl value.  If I use xml as the format of this file, then it reformats this section into a single line tab separated.  If I use name=value, then it loses the format of the rest of the file.