De : Jason Edgecombe <jwe...@un...>
Envoyé : 2 juin 2022 09:34
À : mod...@li...
Objet : [Modules] modules on different Linux distros with shared NFS home directories
I want to start using modules in our Linux environment. I support both RHEL and Ubuntu machines that use the same shared NFS path for each user's home directory. Is there a way for me to override the ~/.modules path to make it something like ~/.modules-$DISTRO ? I would prefer to not modify the core modulecmd.tcl file. I tried using trace commands in my site config, but I can't seem to trace the cmdModuleInit procedure to override things.
You should be able to change MODULEPATH environment variable.
export MODULEPATH=~/modulefiles:/home/modules/modulefiles-$DISTRO
|