problem is I have 10 different version of “app”, in different path with different “config file”!
[SNIP]
The only way that i can get path of executable file and related config file is to run below command:
...
First off: what a mess! My suggestion is to standardise these app versions first: create a directory for every version and put respective version plus its config file there. Something like this:
To have a path like /tool is already questionable but to put an application there and its config into /opt is a sure-fire recipe for disaster. It may be a lot of work but you should clean that up as soon as possible.
If you have one config for several versions create one (maybe somewhere else) and use symbolic links like Neo suggested to represent them at the respective directory. Something like:
The application would still address these as file "config" in the same directory as the application.
I have a process that spits out a file called sqlplus.out, here is what the result looks like:
Currently the value you see is zero, what I need to do is perform an action if that value is non-zero, so how do I check that value in an if statement? If it helps at this moment in development the... (6 Replies)
consider on day1, in PVCS repository we have java files like a.java,b.java with version revision 1.0, through ANT build script we have compiled and created an ear,named c.ear in AIX build server.we have transfered this ear from build server to portal server through FTP using KSHELL.
consider... (0 Replies)
i have a program writing in PRO C which currently running in unix version 8 tie with oracle 8i, but in the future company gonna migrate this OS to version 9.
Anything i have to prepare for my PRO C program to run in unix version 9? or anything would that impact my program couldn't run well?
what... (2 Replies)
Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1
a. Debian Squeeze (HP DL360). Need to use java version6
On Debian, I did apt-get install sun-java6-jdk. So when I check it's
java version "1.6.0_22"
Java(TM) SE... (1 Reply)
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Hi,
Below is output of lslpp command.
bash-3.00# lslpp -L | grep xlC
xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3
xlC.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX... (2 Replies)
Guys,
How to find OS version and firmware version in LINUX?
Like in AIX.
uname -a will show me the version 5.3, 6.1,7.1.
lsmcode -c will show me - system firmware image as SF240_417.
What are the similar commands in Linux.
I checked uname -a and cat /etc/release.
uname... (1 Reply)
Discussion started by: ElizabethPJ
1 Replies
LEARN ABOUT LINUX
config
config(5) Files config(5)NAME
config - Configuration file.
DESCRIPTION
A configuration file contains values for configuration parameters for the applications in the system. The erl command line argument -config
Name tells the system to use data in the system configuration file Name.config .
Configuration parameter values in the configuration file will override the values in the application resource files (see app(5) ). The val-
ues in the configuration file can be overridden by command line flags (see erl(1) ).
The value of a configuration parameter is retrieved by calling application:get_env/1,2 .
FILE SYNTAX
The configuration file should be called Name.config where Name is an arbitrary name.
The .config file contains one single Erlang term. The file has the following syntax:
[{Application1, [{Par11, Val11}, ..]},
..
{ApplicationN, [{ParN1, ValN1}, ..]}].
* Application = atom() is the name of the application.
* Par = atom() is the name of a configuration parameter.
* Val = term() is the value of a configuration parameter.
SYS.CONFIG
When starting Erlang in embedded mode, it is assumed that exactly one system configuration file is used, named sys.config . This file
should be located in $ROOT/releases/Vsn , where $ROOT is the Erlang/OTP root installation directory and Vsn is the release version.
Release handling relies on this assumption. When installing a new release version, the new sys.config is read and used to update the appli-
cation configurations.
This means that specifying another, or additional, .config files would lead to inconsistent update of application configurations. There-
fore, in Erlang 5.4/OTP R10B, the syntax of sys.config was extended to allow pointing out other .config files:
[{Application, [{Par, Val}]} | File].
* File = string() is the name of another .config file. The extension .config may be omitted. It is recommended to use absolute paths. A
relative path is relative the current working directory of the emulator.
When traversing the contents of sys.config and a filename is encountered, its contents are read and merged with the result so far. When an
application configuration tuple {Application, Env} is found, it is merged with the result so far. Merging means that new parameters are
added and existing parameter values overwritten. Example:
sys.config:
[{myapp,[{par1,val1},{par2,val2}]},
"/home/user/myconfig"].
myconfig.config:
[{myapp,[{par2,val3},{par3,val4}]}].
This will yield the following environment for myapp :
[{par1,val1},{par2,val3},{par3,val4}]
The behaviour if a file specified in sys.config does not exist or is erroneous in some other way, is backwards compatible. Starting the
runtime system will fail. Installing a new release version will not fail, but an error message is given and the erroneous file is ignored.
SEE ALSO app(5) , erl(1) , OTP Design Principles
Ericsson AB kernel 2.14.3 config(5)