Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2005
xdm's Avatar
xdm xdm is offline
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 291
Use of variables in config files

Hello there is any way to use variables inside config files I want to do same thing like this
in my config file

Code:
#
#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
Reply With Quote
  #2 (permalink)  
Old 03-24-2005
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 907
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using environment variables with config.txt stephan Help Center 1 09-25-2006 05:22 PM
IceGrid variables Ice-3.0.1 xdm Help Center 1 01-26-2006 06:25 AM
set config properties w/o config file dkey Help Center 3 05-08-2005 06:27 AM
icepackregistry --Ice.Config=config catalin Help Center 1 10-28-2003 05:38 PM
Moving config files into a database? SteveWampler Help Center 1 09-03-2003 01:49 PM


All times are GMT -4. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.