Wednesday, April 2, 2008

GT.M environment variables with alias 'gtm?'

All gtm envrionment variables start with the prefix 'gtm'.
Use the following to dump them to the terminal:



user@machine:~$ printenv | grep -e gtm
gtmgbldir=/gtm/gbl/mumps.gld
gtmroutines=. /gtm/dist/ /gtm/rou/
gtm_dist=/gtm/dist/
gtm_principal=/gtm/filename
user@machine:~$


If you like you can create an alias for this in your bash_aliases file


user@machine:~$ sudo vim ~/.bash_aliases


Add the following line:

alias gtm?='printenv | grep -e gtm'

Now run the command 'bash'.
This picks up the new settings.



user@machine:~$ bash
user@machine:~$

Now you can display the environment using the alias 'gtm?'



user@machine:~$ gtm?
gtmgbldir=/gtm/gbl/mumps.gld
gtmroutines=. /gtm/dist/ /gtm/rou/
gtm_dist=/gtm/dist/
gtm_principal=/gtm/filename
user@machine:~$

No comments: