I should edit httpd.conf file with a sh script.
I think the sed would do the job.
The scenario is
1. I have the replace string to put in a variable $NAMING_SPACE, which will be like:
. This value comes (or anything else) as input from user.
2. I need to change the old Corba namespace from the conf file, see below:
CbrokerORBArgs -ORBInitRef NameService=corbaloc:iiop:
So I began to think how to do it? Well perhaps if I read the current value from the httpd.conf file and store it to
variable $OLD_NAMING_SPACE. Ok so far. But how?
I am sure that this is not difficult and someone can help me.