The user may have to set up some variables of the environment.
Two cases may be encountered: if the MegaWave2 administrator has put the definitions in a specific file
(this is automatically done if he has used the standard installation procedure), you just have to load this file at
login time or when opening a new shell (by using the shell command
source or the
. - dot -).
Ask the local administrator about this possibility.
If there is no such a file, you have to set the variables in your own configuration file as explained at Section 2.1.4 page .
In addition to the standard environment setup, you may want to define the following variables
setenv MW_STDOUT /dev/null, you ask the system to redirect the standard output of all modules to the null device that is, to the trash. Make the experience by calling a run-time module which usually prints a lot of messages... No more messages will disturb your terminal ! But you have lost the messages. If you want to get them in a file (let us call
outputits name), type
setenv MW_STDOUT output. You can reset the default prints by removing your definition:
unsetenv MW_STDOUT. You can also redirect the standard error by setting the variable
MW_STDERR. We do not recommend you to redirect this output to the trash, since you won't be able to know if your modules correctly exit.
mwwhereto see if the called module does not hide another one of same name. Indeed, path for private modules is set before path for public modules in the
PATHvariable (and the same rule applies for module's library at link time). So, if you write a user's module called
foopublic module already exists, the public module will be hidden by the first one. In such a case and providing
MW_CHECK_HIDDENis set, a warning message will be issued by the non-hidden module at running-time. The same procedure applies to macro, to check if a private user's macro hides a public one. However, for macros the check is performed when the header/usage text is output only (e.g. when calling the macro with -help or with an invalid syntax).