![]() | GNT Analyzer | Library: Command Line Interface | ![]() |
Infomgr is a utility that enables you to manage the demonstration programs and accompanying documentation provided with Server Express.
Infomgr is a tool for managing the demonstration programs provided with Server Express; these programs are stored in the directory $COBDIR/demo. Infomgr enables you to:
Infomgr uses a configuration file and several environment variables to control many of its functions. You can change these to suit your requirements. See the section Configuring Infomgr for more details.
To start Infomgr, type:
infomgr
at the system prompt.
When you start Infomgr a banner is displayed, and you are asked you to press any key to continue. Press a key and a menu is displayed:
The contents of this menu might be different to that shown above, depending on what demonstration programs are available with this release of Server Express. This menu shows programming topics for which demonstration programs have been created.
There are two methods you can use to select a topic:
If a topic has only one corresponding demonstration, then the demonstration programs for that topic are displayed. If a topic has more than one demonstration application, a submenu is displayed from which you can make further selections. You select items from the submenus in the same way as for the menu described above.
When you have selected a demonstration program, this menu is displayed at the bottom of the screen:
Select a menu option by typing the first letter of the option, or use the keys specified in the menu. For example, to page up and down through the file you can use either the U and D keys on your keyboard, or the Page-Up and Page-Down; see the appendix UNIX Key Usage Chart for further information on these keys.
Most of the options on this menu enable you to move through and view the demonstration programs, except for Transfer and Compile:
You can configure the behavior of Infomgr. This is particularly important if you intend using the Infomgr's Transfer option to move the demonstration programs to a working directory. Infomgr can be configured using environment variables or a configuration file.
You can use the environment variable TMPDIR to specify which directory Infomgr will use for its temporary files. If you do not set this environment variable, Infomgr uses the /tmp directory for temporary files.
tmpdir=sys:/tmp export tmpdir
You can configure Infomgr using the system configuration files. There are two configuration files recognized by Infomgr:
If both files are found the global entries are read first followed by the local ones.
For more details on the configuration files see the chapter Configuring Development Tools in your Getting Started.
To enable you to configure Infomgr, you can specify options in the [MF-INFOMGR]
section of the configuration file. The values that are specified in the
[MF-ATTRIBUTES] section of the configuration file also affect Infomgr;
therefore, if you change the appearance of the SDE by altering the values in
this section, you will also change the appearance of Infomgr.
To configure Infomgr, you add the tag-section name [MF-INFOMGR] to the configuration file. Following this, you can add any of the tags described below.
Tags have the form:
tag-name: value
where the parameter tag-name can be in upper or lower case.
You can enter the following parameters in the [MF-INFOMGR] section of the configuration file.
The COBOL system directory. This entry overrides the COBDIR environment variable.
COBDIR: directory
where directory is the directory that contains your Server Express COBOL system
$COBDIR
cobdir=/usr/cobol
Command used for clearing the screen external to COBOL.
CLEARCMD: command
where command is a command that will clear the external screen.
tput clear
clearcmd: tput clear
Controls which directory is current when the F2-Cmd function is used.
CMDDIR: menu
If you set menu
then, when you press F2-Cmd when
viewing a source or text file, the current working directory is changed to the
directory containing the item being viewed.
If CMDDIR is set to anything other than menu then Infomgr treats this option as not set.
By default the current working directory is the same directory as that from which Infomgr is invoked.
cmddir: menu
Specifies the directory that contains the Infomgr control and menu files.
COBINFDIR: directory
where directory specifies the directory.
$COBDIR/etc
coninfdir: /u/infomgr
Specifies the directory where Infomgr expects the data files to be located.
COBINFDATA: directory
where directory specifies the directory.
$COBDIR/demo
coninfdata: /u/infomgr
The menu file to be used by Infomgr.
COBINFMENU: filename
where filename specifies the file that contains the definition for the menu.
filename contains the menu structure which matches the structure referenced by the COBINFDATA entry.
demomenu
coninfmenu: testmenu
The command used by Infomgr to print or display files.
PRINTCMD: command
where command is a UNIX print command such as pg
or
lp
.
pg
printcmd: lp
The option required to enable egrep
to be case insensitive
during search and find functions.
GREPCASE: option
where option can be -i
or -y
.
No option is set (egrep is case-sensitive).
grepcase: -y
The directory to be used by Infomgr's for temporary files.
TEMPDIR: directory
where directory is the required directory.
This option overrides the value in the TMPDIR environment variable.
$TMPDIR
tempdir: /tmp
The command required for Infomgr's transfer function.
TRANSCMD: command
where command is one of the UNIX file copying commands such as
cp
.
cp
transcmd: rcp -rp
The directory to be used by Infomgr's transfer function.
TRANSDIR: directory
where directory is the required directory.
If no value is specified for this option the Infomgr transfer function is disabled.
Transfer function is disabled.
transdir: /tmp
Specifies user-defined options to Infomgr.
USRCMD: menu-text,command-details [+] [@]
where the parameters are:
menu-text | The text to be displayed for the menu item |
command-details | The command to be executed on selection of this menu option |
+ | Indicates that a filename is expected at this point in the command. Infomgr substitutes either the current filename, or the PRINTOPT value from the readme (.inf) file in the directory at the time the option is selected, and then executes the command. |
@ | Refers to the current topic if you are viewing a document that has been specially prepared and divided into topics. Only large on-line system documentation is divided in this way. |
None.
usrcmd: test Entry One,pr + usrcmd: Test Entry two,faxit + @
Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.
![]() | GNT Analyzer | Library: Command Line Interface | ![]() |