Archived
This forum has been archived. Please start a new discussion on GitHub.
Use of variables in config files
xdm
La Coruña, Spain
in Help Center
Hello there is any way to use variables inside config files I want to do same thing like this
in my config file
Thanks
in my config file
# #Define base directory # OnRez.Basedir=/home/pepone # # The IcePack locator proxy. # Ice.Default.Locator=IcePack/Locator:default -p 12000 # # IcePack registry configuration. # IcePack.Registry.Client.Endpoints=default -p 12000 IcePack.Registry.Server.Endpoints=default IcePack.Registry.Internal.Endpoints=default IcePack.Registry.Admin.Endpoints=default IcePack.Registry.Data=$(OnRez.Basedir)/DB/icepack/registry IcePack.Registry.Trace.ServerRegistry=3 IcePack.Registry.Trace.AdapterRegistry=3 # # IcePack node configuration. # IcePack.Node.Name=node IcePack.Node.Endpoints=default IcePack.Node.Data=$(OnRez.Basedir)/DB/icepack/node IcePack.Node.CollocateRegistry=1
Thanks
0
Comments
-
No, there is no such feature for config files. If you need something like this, I would suggest to write a simple script that can substitute a value for a placeholder in the file. Python, Perl, and any number of other tools should do the job nicely.
Cheers,
Michi.0