Providing Access to GT.M

To set up a user's default environment, run gtmbase from that user's directory, supplying the path to the directory in which GT.M was installed:

    $ /<path>/gtmbase
    

gtmbase copies the default Global Directory mumps.gld to the current directory and creates a new database in the current directory. It also updates the user's .profile file (.cshrc, if using the C shell), setting up the GT.M default path names and aliases. After this is done, you can run GT.M administration scripts on your own directory, without a full path name.

You can also establish the defaults without running gtmbase by adding the following line to your .profile (.cshrc) file. In the Bourne shell this line is:

    <gtm_dist pathname>/gtmprofile 
    

In the C shell, the line is:

    source <gtm_dist pathname>/gtmcshrc
    

In both cases, specify the required full path name to the directory where GT.M was installed.

You can simplify the use of GT.M by defining all the environment variables and aliases in your .profile file. Production application users generally need most of these commands in their .profile file as well.

In your .profile file, replace the options shown in the following .profile file excerpt as <dist dir area> and <global directory path and file name>.

    gtm_dist=<dist dir area>
    export gtm_dist
    gtmroutines=". $gtm_dist"
    export gtmroutines
    gtmgbldir=<global directory path and file name>
    export gtmgbldir
    PATH=$PATH:$gtm_dist
    export PATH
    

Replace <dist dir area> with the directory in which GT.M is installed.