[Zaphod-Users] module

Kai Germaschewski kai.germaschewski at unh.edu
Wed Oct 12 14:52:08 EDT 2005


On Wed, 12 Oct 2005, Fekete, Balazs M. wrote:

> What is this module thing? When I run "which module" it returns nothing
> as if "module" was a built-in shell command, but when I look at the bash
> documentation, it does not have anything about module. Furthermore, I
> tried to add "module pgi" and "module mpich/gm" to my .bashrc, that made
> the cluster batch to output "command not found" error messages.

kai at h101:~> type -a module
module is a function
module ()
{
    eval `/usr/local/Modules$MODULE_VERSION/bin/modulecmd $modules_shell 
$*`
}

For bash, the module command is implemented as a function. You can use 
"module initadd" to autoload modules at login (see also "module help"), 
however, that'll likely only work after you've run 

/usr/local/Modules3.1.6/bin/add.modules

once to update your .bashrc etc startup files..

The whole module thing is still kinda work in progress, so if anything's 
broken (now or in the future), let me know and I'll try to fix it.

--Kai




More information about the Zaphod-Users mailing list