ini
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 14 November 2020
Index
Return to Main Contents
NAME
ini - initialize environment
SYNOPSIS
ini
( [
-h
] |
-l
|
application
)
edrc/lib/ini.(bash|ksh|sh|csh)
( [
-h
] |
-l
|
application
)
AVAILABILITY
WA2L/edrc
DESCRIPTION
initialize the environment based on named definitions specified in
etc/env.
Each shell has its own
ini.shell
binary to initialize the environment based on the definitions.
So it is not necessary to use different syntax for different
shells, this is done by the
ini.shell
command.
Interactive usage
The interactive
ini
command is a shell alias pointing to the relating
ini.shell
command.
The alias in the
ksh
shell therefore calls the
ini.ksh
command, a C-shell would call the
ini.csh
command.
Script usage
To use the
ini
mechanism in a script, invoke the
ini.shell
command and process the output:
Bourne-Shell using a
temporary file and source it:
ini.sh myApplication > /tmp/env.$$
. /tmp/env.$$
Korn-Shell using a
temporary file and source it:
ini.ksh myApplication > /tmp/env.$$
. /tmp/env.$$
Bourne-Again-Shell using a
temporary file and source it:
ini.bash myApplication > /tmp/env.$$
. /tmp/env.$$
C-Shell using a
temporary file and source it:
ini.csh myApplication > /tmp/env.$$
source /tmp/env.$$
Bourne-Shell using
eval:
eval `ini.sh myApplication`
Korn-Shell using
eval:
eval `ini.ksh myApplication`
Bourne-Again-Shell using
eval:
eval `ini.bash myApplication`
C-Shell using
eval:
eval `ini.csh myApplication`
OPTIONS
- -h
-
usage message.
- -l
-
list all application environment definitions
from the
etc/env
configruation file.
- application
-
application name.
ENVIRONMENT
- $BASEDIR
-
base directory of the userclass tool directory.
The userclass
env
files sit in:
$BASEDIR/etc/.
- $HOME
-
users $HOME directory.
The env file is:
$HOME/.myenv.
EXIT STATUS
- 2
-
operating system not supported.
- 4
-
usage printed.
- 5
-
application definitions listed.
- 6
-
configuration file not found.
FILES
- edrc/etc/ini.cfg
-
configuration file for
ini.
- edrc/etc/env
-
environment definition configuration file for
ini.
- $HOME/.myenv
-
user specific environment definition configuration file for
ini.
- $BASEDIR/etc/env
-
environment definition file if
USERCLASS_SUPPORT=True.
- $BASEDIR/etc/env. domainname
-
domain dependent environment definition file if
USERCLASS_SUPPORT=True.
- $BASEDIR/etc/env. hostname
-
host dependent environment definition file if
USERCLASS_SUPPORT=True.
EXAMPLES
-
SEE ALSO
edrcintro(1),
env(4),
ini.cfg(4)
NOTES
-
BUGS
-
AUTHOR
ini was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2020
by Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:53:13 GMT, August 28, 2024