hi,
i'm new to tcl and modules. i used modules in my previous job (3com)
and loved it. now i'm trying to set it up at my new company.
i compiled modules-v3.0beta1 with tcl/tk 8.0 running on solaris 2.5.
it seems pretty stable for me. and works great for the basic
stuff.
i am now trying to access the module sub-command in the modulefile
script. it seems that [module-info mode] should be the correct
way to get the command but i no matter what sub-command i give it, it
returns "load". is this the correct behaviour?
my global module file looks like this ($modulepath/etc/rc):
#%Module1.0
puts stderr [module-info mode]
this is how i call the module file
% module add test/1.0
load
% module list
load
test/1.0
how can i get the sub-commands such as "add" and "list" from inside
a modulefile.
jamescho
|