gtmdir, gtm_dist, gtm_etrap, gtmgbldir, gtm_icu_version, gtm_log, gtm_principal_editing, gtm_prompt, gtm_repl_instance, gtm_retention, gtmroutines, gtm_tmp, gtmver
The following shell variables are used by the script and left unset at its completion:
old_gtm_dist, old_gtmroutines, old_gtmver, tmp_gtm_tmp, tmp_passwd.
%GTM-E-SYSCALL, Error received from system call shmget() failed
.fis-gtm |-- r |-- V6.2-000_x86_64 | |-- g | | |--gtm.dat
| | |--gtm.gld
| | `--gtm.mjl
| |-- o | | `-- utf8 | `-- r |-- V6.2-001_x86_64 |-- g | |--gtm.dat
| |--gtm.gld
| `--gtm.mjl
|-- o | `-- utf8 `-- r
$gtmdir/$gtmver/o*($gtmdir/$gtmver/r $gtmdir/r) $gtm_dist/plugin/o($gtm_dist/plugin/r) $gtm_dist/libgtmutil.so $gtm_dist
For a comprehensive discussion of GT.M source and object file management, refer to the $ZROUTINES section in the GT.M Programmer's Guide.
When $gtm_chset is set to UTF-8, gtmprofile sets gtmroutines to something like this:
$gtmdir/$gtmver/o/utf8*($gtmdir/$gtmver/r $gtmdir/r) $gtm_dist/plugin/o/utf8($gtm_dist/plugin/r) $gtm_dist/libgtmutil.so $gtm_dist
Note that gtmprofile sets $gtm_dist in UTF-8 mode to the utf8 subdirectory of the GT.M installation directory. If you have installed any plugins that include shared libraries, gtmprofile script includes those. For example, with the GT.M POSIX and ZLIB plugins installed on a 64-bit platform, gtmdir set to /home/jdoe1 and GT.M installed in /opt/fis-gtm/V6.2-001_x86_64, gtmprofile would set gtmroutines to:
/home/jdoe1/.fis-gtm/V6.2-001_x86_64/o*(/home/jdoe1/.fis-gtm/V6.2-001_x86_64/r /home/jdoe1/.fis-gtm/r) /usr/lib/fis-gtm/V6.2-001_x86_64/plugin/o/_POSIX.so /usr/lib/fis-gtm/V6.2-001_x86_64/plugin/o/_ZLIB.so /usr/lib/fis-gtm/V6.2-001_x86_64/plugin/o(/usr/lib/fis-gtm/V6.2-001_x86_64/plugin/r) /usr/lib/fis-gtm/V6.2-001_x86_64/libgtmutil.so /usr/lib/fis-gtm/V6.2-001_x86_64
![]() | Note |
---|---|
This scenario of sourcing gtmprofile is only for the sake of example. Consult your system administrator before implementing gtmprofile for a multi-user environment. |
gtmprofile creates the following aliases:
alias dse="$gtm_dist/dse" alias gde="$gtm_dist/mumps -run GDE" alias gtm="$gtm_dist/gtm" alias lke="$gtm_dist/lke" alias mupip="$gtm_dist/mupip"
If /var/log/fis-gtm/$gtmver directory exists, gtmprofile sets it as the value for $gtm_log. If gtmprofile does not find /var/log/fis-gtm/$gtmver, it uses $gtm_tmp to set the value of $gtm_log.
To source the gtmcshrc script, type:
$ source <path_to_GT.M_installation_directory>/gtmcshrc
gtmcshrc also creates the following aliases.
alias gtm '$gtm_dist/mumps -direct' alias mupip '$gtm_dist/mupip' alias lke '$gtm_dist/lke' alias gde '$gtm_dist/mumps -r ^GDE' alias dse '$gtm_dist/dse'
Adds the following line to .profile or .cshrc file depending on the shell.
In the POSIX shell, gtmbase adds the following line to .profile:
. <gtm_dist pathname>/gtmprofile
In the C shell, adds the following line to .cshrc:
source <gtm_dist pathname>/gtmcshrc